By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,180 Members | 1,016 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,180 IT Pros & Developers. It's quick & easy.

safe_mode ON on local but not in global

P: n/a
My PHP.INI configuration have safe_mode = Off but in local execution it
get On.
I noticed this strange behaviour with a script that shows an error in
move_uploaded_file.
I write a minimal script with

<?php
phpinfo();
?>

It shows safe_mode On (local) and safe_mode Off (global).

Anyway I tried this other script

<?php
ini_set('safe_mode',FALSE);
phpinfo();
?>

and the results were the same.

Anyone can help me? The web server is under my complete control and is
used only for one website; I don't need SAFE MODE. I don't want it.

Nov 9 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
ra****@tiscali.it wrote:
My PHP.INI configuration have safe_mode = Off but in local execution it
get On.
I noticed this strange behaviour with a script that shows an error in
move_uploaded_file.
I write a minimal script with

<?php
phpinfo();
?>

It shows safe_mode On (local) and safe_mode Off (global).

Anyway I tried this other script

<?php
ini_set('safe_mode',FALSE);
phpinfo();
?>
Well it wouldn't be a very safe safe_mode if it were that easy to turn off!

IIRC, master is the value in the config file, but this can be overridden in
the apache config / .htaccess files or in the script. Check your config
files - also watch out for include files, particularly if auto-prepended.

HTH

C.

Nov 9 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.