Web Hosting Talk







View Full Version : php safemode.


babak
08-26-2002, 01:57 PM
Hi

Is there any other solution to dissable dir-snooping whith php other than PHP safe-mode ?

I dont want to set php on safe-mode, but I dont want that costumers go a round on the server whit a simpel script:mad:

I need to keep them in there own dir.


TNX.

Regards,
babak

Noldar
08-26-2002, 02:31 PM
One option would be to run PHP as a CGI and use suEXEC.

Richard

2host.com
08-26-2002, 02:45 PM
Originally posted by Noldar
One option would be to run PHP as a CGI and use suEXEC.

Richard

In fact, that and a combination of permissions and ownership are the only way to prevent it when using a web server, CGI and PHP. I agree with that solution and safe_mode isn't going to prevent directory snooping anyway.

fr0zenWHS
08-26-2002, 03:56 PM
Just use the Open_Basedir directive. Check your PHP manual for details.