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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi. I'm running PHP 4.2.0 at hom

Status
Not open for further replies.

FredrikN

Programmer
Jan 5, 2001
60
SE
Hi.

I'm running PHP 4.2.0 at home and I have safe_mode on.

This works fine but I really need to set the operator backticks (``) on again , I need it in some of my scripts

Does anyone knows if I can turn backticks on again ??

Thanks

*//Fredrik
 
With the assumption that you do not want to turn safe mode off, you might look at safe_mode_exec_dir in php.ini.

If your php.ini is missing all the nice comments describing configuration parameters, here's what mine reads:

; When safe_mode is on, only executables located in the safe_mode_exec_dir
; will be allowed to be executed via the exec family of functions.
safe_mode_exec_dir =
 
Hi.

Yes I now about the php.ini but I'm using httpd.conf instead.

The problem is that I'm using safe_mode , and it's working fine.

But I need to know if there is any variable that will turn och the backticks again and still be using PHP in safe mode.

The safe_mode_exec_dir = doesn't seem to have any affect at all when safe_mode is on

//Fredrik
 
I'm sorry, but I don't understand what you mean when you say you are using httpd.conf instead.
 
Well, I think it more comfortable to use httpd.conf to store php variables in it.
Then you will have apache conf and php conf i the same file.

//Fredrik
 
Am I correct to say that you wish to know how to change PHP configuration directives on a per-server basis from within httpd.conf?

If so, the directive in httpd.conf is "php_admin_value"

For example,
<Directory /foo/bar/html>
php_admin_value safe_mode off
</Directory>
 
Hi again.

I'm using the php_admin_value safe_mode On
and it works fine.

But safe_mode dosen't allow backticks, what I want to do is to have 'safe_mode on' AND also allow backticks at the same time, if it is possible ?

//Fredrik
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top