PHP system() fails on WinZipSE
Posted: Wed Jun 23, 2010 10:58 am
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!
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!