Trouble with exec()

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jbreazil
Forum Newbie
Posts: 1
Joined: Thu Oct 05, 2006 6:47 pm
Location: Pacific NW

Trouble with exec()

Post 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
Post Reply