ini_set("log_errors", 1); // Enable error logging
ini_set("error_log", "/tmp/php-error.log"); // set error path
error_log( "Hello, errors!" ); // log a test error
ini_set("log_errors", 1); // Enable error logging
ini_set("error_log", "/tmp/php-error.log"); // set error path
cat /var/log/php7.4-fpm.log
#change php version
/usr/local/apache/logs/error_log
// Php Error Log
error_log("Error message");
// Log and Array
error_log( print_r( [
__METHOD__,
'error_key_1' => 'error_value'
] ) );
Code Example |
---|
:: |
:: laravel foreign key |
:: |
:: |
:: php datetime object get unix timestamp |
Php :: |
:: |
Php :: create new laravel project with specific version |
:: |
:: |
Php :: preg_replace remove double quotes |
:: |
Php :: CAPTURAR URL PHP |
Php :: |
:: |
Php :: |
:: |
Php :: header location php |
:: |
:: |
:: |
Php :: |
Php :: |
:: for loop php increment by 2 |
:: |
:: |
:: |
:: |
Php :: |
Php :: |