Page 1 of 1

Trouble with exec()

Posted: Thu Oct 05, 2006 8:39 pm
by jbreazil
I have a script that uses the exec() command, in the first instance it works, basically it takes a list of files and checks them out from a CVS dir to a local drive. I copied and pasted the section to a new function in the same file and I'm doing basically a compile on the checked out source with the exec() command. It returns TRUE that the command completed successfully but I never get the file the command is suppose to produce.

I echo the command string to my web page after each exec() call, copy and paste the string into a command window and it produces the file as expected?!?! Any ideas why the exec call works on in the cmd window, but not from my script?

Config:
Windows XP Pro
Apache 2.0.55
PHP 5.1.4