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
Php :: - root composer.json requires php ^7.1.3 but your php version (8.0.3) does not satisfy that requirement. 
Php :: define home url wordpress config.php 
Php :: parent directory in php 
Php :: foreach limit laravel 
Php :: php get all txt files in directory 
Php :: reverse array laravel 
Php :: php is numeric 
Php :: laravel updateorcreate 
Php :: php clear output 
Php :: php self 
Php :: carbon parse sunday 30 days ago 
Php :: PHP Casting Strings and Floats to Integers 
Php :: laravel where column different 
Php :: laravel number add 0 before 
Php :: php add string inside string at position 
Php :: get request uri from request laravel 7 
Php :: magento 2 status mode 
Php :: how to print array in laravel blade 
Php :: unique validation on update laravel 
Php :: Check duplicate email in laravel using jQuery validation 
Php :: php var_dump pre 
Php :: wordpress print post data 
Php :: include php 
Php :: How to use php to set title 
Php :: codeigniter get parameter from url 
Php :: laravel increment column value in update query 
Php :: laravel access controller method from another controller 
Php :: laravel model quard 
Php :: laravel faker boolean 
Php :: php sleep 1 second 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =