Jump to content

[SOLVED] php.ini


ted_chou12

Recommended Posts

who has a standard php.ini file that I can have a look at, (and maybe use it for my website). Can anyone please also guide me as to where i should place it? (under which directory). Please?

btw, i am specifically looking for ones that turns error reporting on and off.

Thanks

Ted

Link to comment
https://forums.phpfreaks.com/topic/37114-solved-phpini/
Share on other sites

you can set that in you php script.

 

use

 

ini_set('error_reporting', #VALUE);

 

Where value is corresponds to the setting you want from this table http://uk2.php.net/manual/en/ref.errorfunc.php#errorfunc.constants

 

REMEMBER to take note of version notes in teh NOTE coulmn - particularly on 'E_ALL'

 

 

Link to comment
https://forums.phpfreaks.com/topic/37114-solved-phpini/#findComment-177268
Share on other sites

The php.ini file is a global configuration file so unless you have root access to the server, ini_set or .htaccess are your best options.

 

Some hosts have there installs setup differently and may let you have your own custom php.ini within a local dir, you'll need to look at your hosts docs.

Link to comment
https://forums.phpfreaks.com/topic/37114-solved-phpini/#findComment-179067
Share on other sites

i think i do have a root access of my server, i kind of searched it on google, the php.ini file is located in a folder called etc, which, is in my control. however, it doesnt have a php.ini file, i uploaded my own, but the configuration doesnt seem to effect my server in anyway.

Thanks

Ted

Link to comment
https://forums.phpfreaks.com/topic/37114-solved-phpini/#findComment-179069
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.