Thursday, 14 December 2023 15:59

How to show all errors in php?

If you need show some errors in your php code - use this php notation:

// enable showing errors in PHP
ini_set('error_reporting', E_ALL & ~E_NOTICE & ~E_WARNING & ~E_STRICT);
ini_set('display_errors','On');
Thursday, 28 April 2023 15:34

[ solved ] Fatal error: Cannot redeclare

<?php  
if ( ! function_exists ( 'yours_func' )) {
    function yours_func() {
     ...
    }
 }
?>