php.ini : Most commonly used php directives

Below are the most commonly used php directives. You have to change php.ini file in order to configure php settings. This just means changing these directive’s option and value. 1) short_open_tag = Off Allow the many servers don’t support short tags. 2) max_execution_time = 30 Maximum execution time of each script, in seconds 3) error_reporting … Read more

How to find php version and php.ini file location path?

We can view the php settings by creating a php file in our web root with the following code: <?php phpinfo(); ?> Let the name of the file be phpinfo.php The file location will be: /var/www/phpinfo.php (For Linux) C://xampp/htdocs/phpinfo.php (For Windows with Xampp) C://wamp/www/phpinfo.php (For Windows with Wamp) Open http://localhost/phpinfo.php in your browser in your … Read more