I'm trying to incorporate the following UNIX (I think) command in a PHP script.
unzip -P password /home/xxx/public_html/dir/file.zip -d /home/xxx/public_html/dir/targetdir
What do I use to do that?
Thanks!
you could try
$output = `unzip -Ppassword /home/xxx/public_html/dif/file.zip -d /home/xxx/public_html/dir/targetdir`; echo $output;
there should be no output if it unzips correctly since verbose is turned off there.
Thank you very much!