php.ini sintax

Discuss server installationa nd configuration issues here

Moderators: egami, macek, gesf

Post Reply
landi
php-forum Active User
php-forum Active User
Posts: 388
Joined: Thu Mar 15, 2012 3:59 pm

Tue Nov 18, 2014 2:57 am

Hi,
The usual syntax is like this:

Code: Select all

register_globals = Off
If you look in php.ini, most of the variables are shown, some of them are commented out with #

Code: Select all

# register_globals = Off - this is a comment
For a module like suhoshin, suphp etc, you need to have a section in your php file e.g.

Code: Select all

[suhoshin]
Suhoshin help is available here: http://www.suhosin.org/stories/configuration.html You may want this section in your php file. DO NOT DO THIS ON A PRODUCTION SERVER unless you deliberately want to bypass the security of suhoshin!

Code: Select all

[suhosin]
suhosin.simulation = On
etc...
-A

Post Reply