Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php set error log file

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
Comment

php error log

ini_set("log_errors", 1); // Enable error logging
ini_set("error_log", "/tmp/php-error.log"); // set error path
Comment

php error log

cat /var/log/php7.4-fpm.log
#change php version
Comment

how to see php error log

/usr/local/apache/logs/error_log
Comment

php error log

// Php Error Log
error_log("Error message");

// Log and Array
error_log( print_r( [
  __METHOD__,
  'error_key_1' => 'error_value'
] ) );
Comment

PREVIOUS NEXT
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 ::  
ADD CONTENT
Topic
Content
Source link
Name
7+8 =