The ISAPI version of PHP4 will not let you execute external programs. We had the same problem and tried switching to the CGI version. That got rid of the error message, but it still wouldn't run the programs. Our final solution was to install PHP3 (CGI) and use that any time we need to use system(), exec(), or passthru(). HTH...
--Jason
Paul Lin wrote:
I am writing a PHP script to backup the Oracle database and FTP to the backup server automatically. but I got a problem, since I need to run the external command EXP to export the Oracle database, so I tried exec(),passthru() and system() to execute the EXP command,
they are as following
system("exp xxxxxx")
or exec("exp xxxxxx")
or passthru("exp xxxxxx")
but I got a error message says "unable to fork [exp xxxxxx] ..."
what is the problem? anyone knows how to solve it?
Thanks in advance!
Paul Lin