![]() |
|
|||
|
ok, Mr. Know Nothing About PHP just found something out
just do the same old Linux commands inside of a shell_exec() and bam! here's an example: Code:
Also, take a look at [url=http://www.redhat.com/docs/manuals/linux/RHL-7.2-Manual/getting-started-guide/s1-zip-tar.html:3dzfol6l]This Link[/url:3dzfol6l] for linux compression and decompression commands :-) Worked for me! |
|
|||
|
here's a note about what i posted:
it leaves permissions set to the actual php script that you ran, so you need to change permissions with these commands, i'm not 100% sure what you should do. use: umask chgrp chmod it seems as though when i did a chmod -R 777 and a chgrp -R WWW that i was able to erase things, modify them, and chmod them like normal. the normal chmod command only changes one single file or folder; it doesn't modify contents of a folder. the workaround for this is to use the -R tag, i did a shell_exec("chmod -R 777 Path/To/Dir"); since I don't know how i would do that with the normal php chmod command. i've been working on this for a while now, I think I have more of an idea of how to do all of these. I've successfully been able to extract zip files and gzips (.tar.gz). do a google search for the unix versions of these commands as well as the php versions, it helped me a lot and it could help you too. tell me if you know of any more. |
|
|||
|
you can download php unzipper here
http://www.softlinks.ru/scripts/f738.php sorry the download site is not in english but the owner of the script site is no longer up. i know nothing about php, but this script is so easy to install and use. the only thing u need to know is how to set file and folder permissions to 777 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|