error_reporting(e_all) in php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
// how to display php errors on your browser :
// first step, create an error function :
$errors = array();
// now you have just to insert the function like this :
if (........){
$errors['the_name_of_the_error']='the error message';
}
// example :
// we want to display an error when the user does not correctly fill,
// in the 'password' box when registering on your website :
if(empty($_POST['password']) ||
$_POST['password'] != $_POST['password_confirm']){
$errors['errors']= "You must enter a valid password";
}ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
Also in PHP:
- create session in wordpress
- echo console.log
- file_get_contents base64 php
- change date format php
- check if number doesn't divide exactly by 3 php
- SQLSTATE[42S02] lumen
- append variable into string php
- convert date to timestamp php
- base encode64 php image
- check strinh in php
- create laravel v 6.8
- Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:cer
- count variable lenth in php
- Package phpoffice/phpexcel is abandoned, you should avoid using it. Use phpoffice/phpspreadsheet instead.
- call controller function from another controller laravel
- cleare all cache in laravel
- TEXT UPPER PHP
- Undefined offset: 0 at laravel\framework\src\Illuminate\Routing\Router.php
- client's ip address in php
- check if string contains letter php
- Class 'App\Http\Controllers\File' not found
- file_put_contents true php
- create a blank page wordpress
- check if key exists in dictionary php