Results 1 to 2 of 2
Thread: php Safe Mode?
Dec 8, 2000, 06:18 #1
What is the difference if the php option Safe Mode is enabled in the server?
Would this disable the use of fopen() or file(), to get files from pages not in my directory?
Dec 8, 2000, 11:05 #2
- Join Date
- Jul 2000
- Warwickshire, England
- 0 Post(s)
- 0 Thread(s)
For more specs read http://www.php.net/manual/phpfi2.html#safemode
"Simply put, if a file is either owned by the same user id as the script that is trying to access it, or if the file is in a directory that is owned by the same user as the script that is trying to access it, then the access is allowed."
"Safe Mode applies to each function which could possibly be a security risk. Below is the current list of checks applied to each relevant function."
"Include, ReadFile, Fopen, File, Link, Unlink, Symlink, Rename, RmDir, ChMod, ChOwn, ChGrp, Exec, System, PassThru and Popen"
"Executables to be forked and executed must reside in the directory defined by the PHP_SAFE_MODE_EXEC_DIR #define in php.h when PHP is compiled."
It also mentions some mysql functions and HTTP auths.