I think you've answered your own question. Check the permissions on the file. Can it be executed by the other user? Is it in the path? What error do you see in the log? ls -l chmod might just be your friends ;-) -----Original Message----- From: Sagar C Nannapaneni [mailto:sagar@xxxxxxxxxxxxxxx] Sent: 13 January 2005 06:54 To: php-general@xxxxxxxxxxxxx Subject: unable to execute external program Hi, I've compiled an external program in my linux server. That program creates a pdf file taking a html file as input. when i run it thru the command line its working fine. But when i tried to execute the same command from php with exec() command its not working. Note that from command i'm logged in as root. And i'm using PHP as another user on the same server. Any other suggestions to run a command line commad thru PHP?? /sagar ________________________________________________________________________ This message has been checked for all known viruses by the CitC Virus Scanning Service powered by SkyLabs. For further information visit http://www.citc.it ___ ________________________________________________________________________ This message has been checked for all known viruses by the CitC Virus Scanning Service powered by SkyLabs. For further information visit http://www.citc.it ___ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php