RE: [PHP] I think this is a bug...cant use exec commands.

From: Date: Thu, 01 Apr 2004 13:07:31 +0000
Subject: RE: [PHP] I think this is a bug...cant use exec commands.
Groups: php.general 
Request: Send a blank email to php-general+get-182014@lists.php.net to get a copy of this message
[snip] May be you can look at exec() function: http://www.php.net/manual/en/function.exec.php [/snip] From that page... Note: When safe mode is enabled, you can only execute executables within the safe_mode_exec_dir. For practical reasons it is currently not allowed to have .. components in the path to the executable. Warning With safe mode enabled, all words following the initial command string are treated as a single argument. Thus, echo y | echo x becomes echo "y | echo x". [snip from original] > Warning: shell_exec(): Cannot execute using backquotes in Safe Mode in > /var/www/html/swap/swap.php on line 3 [/snip] He goes on to say that safe mode is not enabled on his machine in his php.ini, but perhaps he has more than one and is looking at the wrong one. What is thelocation of the php.ini when you run phpinfo()?

« previous php.general (#182014) next »