exec quatation problem

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I try to do the following:

exec('"c:\program files\winzip\wzzip" -s123456 "d:\my path\file.zip" "d:\my  

But it doesn't do anything. Looking further, the apache log tells me:

c:\program is not recognized as internal or external command, program or  


Even weider:
exec('"c:\program files\winzip\wzzip" -s123456 d:\mypath\file.zip  

(so without the quating in the arguments) That does run.... But this way, I  
cannot have spaces in the arguments, which I need...

Does anyone know a solution to be able to execute the line that I wrote  

Thanks, best regards,
-Hendri Adriaens.  

Re: exec quatation problem

Quoted text here. Click to load it


Quoted text here. Click to load it

Note, I forgot to write the final single quotes (') in the argument of exec.  
This is a typo in the message, not in the program.


Site Timeline