|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-10-18 19:03 UTC] shterng at akula dot com
It seems like in 4.0.3pl1 both exec and system put -1 in the return arguement, indicating a problem in the exec() call. It worked fine in 4.0.2. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 20:00:01 2025 UTC |
I am using SuSE 7.1, Apache 1.3.14 and PHP 4.0.4pl1 - Using the examples you have online and in my PHP Core Programming book for the system() it fails - an example piece of code would be <? phpinfo(); system("ls -l"); ?> Replacing the 'ls -l' with a date command, with or without a pathname and quotes gets no response either. The only error I get is reported in my Apache error_log which says sh: /ls: No such file or directory Note, again, the message above occurs regardless if I prefix my command with its correct full pathname or not. In order to assist anybody who might be able to help I have uploaded my configuration files to http://www.fiprojects.com/php.ini.conf and http://www.fiprojects.com/httpd.conf Note, my php.ini file is called php.ini on my system, I haev renamed it to make it easier on most folks browsers on purpose. Many thanks - and keep up the good work... randell d.