|
Posted by johnny on 12/20/06 01:57
I have the following code. What I need is to zip the file
(c:\web\upload\someFile) to d:\web\someFile.zip.
$cmd = 'c:\zip\zip.exe '. $movedFile. ' '. $finalFile;
exec( $cmd, $cmd_output );
File is being uploaded by the apache server, but it's not being zipped.
My guess "\", escaping, is causing problem in windows path. Do I also
have to escape the $movedFile content? Forexample $movedFile=
"c:\web\upload\someFile".
Navigation:
[Reply to this message]
|