How to Adjust PHP Initialization Parameters
The "php_ini" function lets you initialize parameters when the user opens your website. This function controls low-level server instructions, so you can customize some of the settings used when the server runs the website. You must be able to run the function, and some Web servers block the ability to use the php_ini function.
Instructions
-
-
1
Right-click the PHP file you want to use to change the parameters. Click "Open With" and select your PHP editor.
-
2
Create a variable and set the variable's value to the parameter value you want to change. For instance, if you want to display errors, create the following variable to set the "display error" variable to "on":
$display = 1;
-
-
3
Call the "php_ini" function to set the parameter. The following code sets the parameter on the server:
ini_set('display_errors', $display);
-
1