[snip] 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?? [/snip] Is safe mode on? Did you change the ownership/permissions of the external program so that the PHP user could run it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php