473,382 Members | 1,369 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

safe_mode ON on local but not in global

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
1 5625
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Henrik Oddershede | last post by:
Hi. I am having a problem with safe_mode in PHP-4.3.2. I was running an Apache-1.3.27 web server on solaris8 with PHP-4.3.1 with safe_mode on - and everything was working fine. Yesterday, I...
0
by: Gerrit Kuilder | last post by:
Hello All, I have the following question: a hosting provider has turned local safe_mode off and the master safe_mode is on. This prevents an application/php script to work. The provider...
1
by: David Ruiz | last post by:
Hi all, I've tried to compile PHP-4.3.3 for a HORDE installation and it requires that PHP is compiled with safe_mode disabled. I compiled it like this: --disable-safe_mode...
1
by: Felix Natter | last post by:
hi, I would like to upload a file (via a form), then read that (temporary) file and write the contents into a database. The first problem is that open_basedir=/home/CUSTOMER so I can't just read...
2
by: ZMAN | last post by:
Hello all! The ISP that hosts a few of my sites switched on safe_mode, now my calls to Pear (require_once('DB.php');) are not working. I get: Warning: main(): SAFE MODE Restriction in effect....
0
by: bedek | last post by:
Hello How to set BASH variable form PHP which is working in "safe_mode" ? .... and to check if it's set for sure ? I find out that I should create directory for binaries in home direcotry of...
3
by: Kyle Root | last post by:
I'm writing a little program that compares two versions and tells you whether you are upgrading, downgrading, or it's the same version. Unfortunately, I haven't gotten very far, in fact I'm at a...
23
by: Timothy Madden | last post by:
Hello all. I program C++ since a lot of time now and I still don't know this simple thing: what's the problem with local functions so they are not part of C++ ? There surely are many people...
0
by: Zeilkman | last post by:
Hi everybody, I'm runing LAMP on a Fedora 7 + Plesk server. PHP Version 5.0.4 Apache 2.0 Handler The "local value" of Safe Mode is ON and the "master value" is OFF I try to change the...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.