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 :: php add 0 before number 
Php :: woocommerce checkout shortcode 
Php :: php pretty print 
Php :: install php dom extension ubuntu 
Php :: laravel commands to refresh env file 
Php :: php referer url 
Php :: php header utf8 json 
Php :: PDOException::("SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes") laravel 8 
Php :: how to get ip address of client using php 
Php :: : Unable to locate package php7.4-fpm 
Php :: laravel specified key was too long 
Php :: typeof php 
Php :: Call to undefined method JeroenNotenLaravelAdminLteHelpersMenuItemHelper::isSearchBar( 
Php :: Warning: Cannot modify header information - headers already sent by (output started at C:xampphtdocsheermatkamyprofile.php:48) in C:xampphtdocsheermatkamyprofile.php on line 144 
Php :: wp enqueue 
Php :: laravel storage symlink 
Php :: php contruct parent 
Php :: laravel get current route name 
Php :: php replace return character 
Php :: php code to increase maximum execution time 
Php :: php loop through json 
Php :: php time format am pm 
Php :: debug wordpress 
Php :: link acf 
Php :: wordpress get post id 
Php :: fix to 2 decimal places php 
Php :: laravel hash check password, Verifying That A Password Matches A Hash 
Php :: set nav link active on the basis of route laravel 8 
Php :: db not found in laravel 
Php :: year shortcode 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =