Use the following code:
ini_set("log_errors", 1); ini_set("error_log", "/tmp/php-error.log"); error_log( "Hello, errors!" );
“PHP: How to log errors and warnings into a file?”Continue reading
Use the following code:
ini_set("log_errors", 1); ini_set("error_log", "/tmp/php-error.log"); error_log( "Hello, errors!" );
“PHP: How to log errors and warnings into a file?”Continue reading
You can specify which php.ini file is used within a certain directory if you have multiple php.ini files.
To do this, edit your .htaccess file located in the directory you wish to use and add the following .htaccess code:
“How to Get Your php.ini Path with SuPHP”Continue reading
SuPHP Or PHPSuExec is a module that increases the security of the server and executes PHP files under the ownership of the owner of the file instead of the Apache user i.e. “apache”.
“Installation SuPHP/phpSuExec on Apache server with Plesk extension.”Continue reading
Your service provider might have forgot to tell you that you need to enable your user defined php.ini configuration by adding this line in the .htaccess file that you find in your public_html folder:
“How to turn off php safe_mode off for a particular directory in a shared hosting environment?”Continue reading
Php has multiple functions to do this task. Lets take a look at each of these
1. system
“Tips: execute shell commands in php on Linux server”Continue reading