Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Safe Mode

Status
Not open for further replies.

bluepixel

Programmer
Joined
Jul 8, 2004
Messages
1
Location
GB
Can someone explain in plain English the down side of having the safe mode off?

I wish to use an e-mail form script which needs it to be off.

Thanks in advance.

Buepixel.
 
The PHP online manual section on safe mode states:

The PHP safe mode is an attempt to solve the shared-server security problem. It is architecturally incorrect to try to solve this problem at the PHP level, but since the alternatives at the web server and OS levels aren't very realistic, many people, especially ISP's, use safe mode for now.

Safe Mode is most useful in shared-server environments. Since PHP's filesystem functions are not constrained to the document root of a web site, it adds an additional level of protection in a situation where multiple, possibly-untrusted entities are creating and running code on your server. This would be the case if you are a hosting service provider.

If you are running your own server and will be the only one creating code to run on that server, safe_mode isn't really necessary.




Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top