Page 1 of 1

PHP system() fails on WinZipSE

Posted: Wed Jun 23, 2010 10:58 am
by ronnyzmanbarzell
Good Morning,


I am having a problem with system() on PHP (Windows) running the WinZip Self-Extractor. Here's a relevant code snippet ($zip and $base have both been properly defined):

system("\\progra~1\\winzip\\wzzip.exe $zip $base.*");
system("\\progra~1\\winzip~1\\winzipse.exe -y -o $zip");

When this runs I find a zip file corresponding to $zip, verifying the first system() succeeded. However, there is no exe file which should be the output from the second system() call. What's more, WinZipSE (the process corresponding to the second system() call) ends up stuck in the background without terminating. Everything works when I type in the contents of system (expanding $zip) from the command line.

Any help would be greatly appreciated.


Thanks!

Re: PHP system() fails on WinZipSE

Posted: Wed Jun 30, 2010 12:54 pm
by ronnyzmanbarzell
Hey,


I ended up using 7-zip instead and everything works. Thanks in advance to anyone who looked into this.


Take Care.