PHP
--
Questions
--
Followers
Top Experts
PHP safe_mode Value
Hi,
I am using PHP Version 4.3.6, SunOS. I have 2 questions.
(1)Is there anyway to set safe_mode "off" for selected users and "on" for the rest of the users? (atleast for one user)
Basically, I need to invoke some shell commands/scripts from a PHP script. With safe_mode on, I am not able to execute any shell command.
(2) I have seen phpinfo(). It shows safe_mode on for "Local Value" and "Master Value". What is the difference between the two? Can I use this to solve my first problem?
How can change these values for a PHP script running on windows IIS 5.0.
I hope I am clear,
Thanks,
venkat.
I am using PHP Version 4.3.6, SunOS. I have 2 questions.
(1)Is there anyway to set safe_mode "off" for selected users and "on" for the rest of the users? (atleast for one user)
Basically, I need to invoke some shell commands/scripts from a PHP script. With safe_mode on, I am not able to execute any shell command.
(2) I have seen phpinfo(). It shows safe_mode on for "Local Value" and "Master Value". What is the difference between the two? Can I use this to solve my first problem?
How can change these values for a PHP script running on windows IIS 5.0.
I hope I am clear,
Thanks,
venkat.
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
SOLUTION
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
more information on ini_set here http://www.php.net/manual/en/function.ini-set.php
ASKER CERTIFIED SOLUTION
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
>> So you can avoid trying ini_set("safe_mode", 0); as it won't work.
if this is so why is safe_mode specified as a configuration option in the ini_set manual? :s
if this is so why is safe_mode specified as a configuration option in the ini_set manual? :s
I did try using ini_set() but no use. It seems I can override the default setting only in apache http.conf or php.ini and not .htaccess.
Is there any other way to  to set safe_mode "off" for selected users??
Is there any other way to  to set safe_mode "off" for selected users??






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
if you cant change it that way then the answer is no
not unless you can do what ThG said and alter the php source code
not unless you can do what ThG said and alter the php source code
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
PHP
--
Questions
--
Followers
Top Experts
PHP is a widely-used server-side scripting language especially suited for web development, powering tens of millions of sites from Facebook to personal WordPress blogs. PHP is often paired with the MySQL relational database, but includes support for most other mainstream databases. By utilizing different Server APIs, PHP can work on many different web servers as a server-side scripting language.