faqts : Computers : Programming : Languages : PHP : Installation and Setup : Security

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

12 of 13 people (92%) answered Yes
Recently 4 of 5 people (80%) answered Yes

Entry

How can I stop users on my web server from using system()?
How can I setup PHP for safe scripting only?

Jun 19th, 2000 07:41
Nathan Wallace, Rasmus Lerdorf, Chad


Turn on safe-mode and the system()-like functions can only execute
whatever programs are located in the designated safe-mode-exec-dir.  If
you point that to an empty dir people won't be able to execute anything.

    http://www.php.net/manual/security.php

    http://www.php.net/manual/phpfi2.html#safemode