Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php show error

error_reporting(E_ALL);
ini_set('display_errors', 1);
Comment

show display error php

//PHP functions - add the lines in the above of page

ini_set('display_errors', 1);
ini_set('display_startup_errors', 0);
error_reporting(E_ALL & ~E_NOTICE);
Comment

display error php

<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
?>

<?php
error_reporting(E_ALL & ~E_NOTICE); // if don't want to see notice
// Or
error_reporting(E_ALL);
?>
Comment

show php all errors

error_reporting(E_ALL);
ini_set('display_errors', '1');
Comment

display php error

Only display php errors to the developer...

<?php
if($_SERVER['REMOTE_ADDR']=="00.00.00.00")
{
  ini_set('display_errors','On');
}
else
{
  ini_set('display_errors','Off');
}
?>

Just replace 00.00.00.00 with your ip address.
Comment

PREVIOUS NEXT
Code Example
Php :: larave whereNotNull 
Php :: mage log magento 2 
Php :: laravel image validation 
Php :: check laravel version 
Php :: php date in human readable form 
Php :: generate random unique hex color code using php 
Php :: php artisan serve another port 
Php :: codeigniter distinct 
Php :: php disable errors 
Php :: php get first 5 characters of string 
Php :: yii2 migration add column 
Php :: php remove enter from string 
Php :: deactivate woocommerce breadcrumbs 
Php :: laravel get url segment 
Php :: wordpress is_archive 
Php :: create model in laravel command line 
Php :: php error reporting all 
Php :: php reading a file line by line 
Php :: get all values inside session laravel 
Php :: php loop through every day of the year 
Php :: woocommerce cart button shortcode 
Php :: hide php extension htaccess 
Php :: php xml to array 
Php :: date casting from datetime to d-m-Y laravel using cast 
Php :: wordpress get the main url 
Php :: throwexception laravel 
Php :: date_default_timezone_set for india in php laravel 
Php :: wp custom rest endpoint 
Php :: foreign id laravel migration 
Php :: php curl delete request 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =