how to use ini_set() to set setting in php.ini

how to use ini_set() to set setting in php.ini
firekiller15Asked:
Who is Participating?
 
RoonaanCommented:
Hello firekiller15,

http://php.net/ini_set

Regards,

Roonaan
0
 
Loganathan NatarajanLAMP DeveloperCommented:
you can set any value to the correspond functions in php.in for example, to have error display, you can set some values like,

<?php

ini_set('display_errors', E_ALL);

?>
0
 
virmaiorCommented:
actually there are some limitations to using ini_set:

(1) if you are running in PHP's safe_mode, then you won't be able to change very many settings.
(2) you cannot change certain features such as session.gc using ini_set since they happen before the script is evaluated.

but the usage is exactly as Roonan indicates.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.