|
#1
|
|||
|
|||
|
are escapeshellcmd() and exec() enabled, or can we enable these for our accounts using php.ini
|
|
#2
|
||||
|
||||
|
The PHP escapeshellcmd() function merely escapes any characters in a string that might be used to trick a shell command into executing arbitrary commands. The PHP exec() function works fine where the server's executable files themselves have been granted the necessary permissions -- notably, for example, for things like ImageMagick and other executable files that are located in the /user/bin/ and /usr/local/bin/ folders.
No need for any special php.ini modifications. Last edited by virtvir5; 01-12-2011 at 12:48 AM. |
|
#3
|
|||
|
|||
|
This is dredging up an old topic, but I have a cronjob that runs every 15 minutes to check to see if a remote repository has been updated, and if so, it is supposed to trigger two additional php scripts to execute via the "exec" command. The code is like this:
exec('php '.getcwd().' /MYFILE.php'); However, it results in a hung process and loads of "unable to fork" errors in the error log. I can run the secondary scripts via http or CLI with no issue, so i'm not sure what the problem is. Does anyone have any tips/suggestions?
__________________
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
|
|
All times are GMT -5. The time now is 06:53 AM.








