PHP Error Types (1619)
PHP Error Types (1619)
Stack trace:
#0 {main}
thrown in /home/36db1ad4634ff7deb7f7347a4ac14d3a.php on line 12
Explanation : In line 12, function is called but the definition of function is not available. So it
gives error.
3.Warning Errors :
The main reason of warning errors are including a missing file. This means that the PHP
function call the missing file.
Example: Error:
<?php
PHP Warning: include(gfg.php): failed to
open stream: No such file or directory in
$x = “GeeksforGeeks”; /home/aed0ed3b35fece41022f332aba5c9b45.php on
line 5
include (“gfg.php”); PHP Warning: include(): Failed opening ‘gfg.php’
for inclusion (include_path=‘.:/usr/share/php’) in
echo $x . “Computer science portal”; /home/aed0ed3b35fece41022f332aba5c9b45.php on
?> line 5
Explanation: This program call an undefined file gfg.php
which are not available. So it produces error.
4.Notice Error:
It is similar to warning error. It means Error:
that the program contains something
wrong but it allows the execution of PHP Notice: Undefined variable: geeks in
script. /home/
Example: 84c47fe936e1068b69fb834508d59689.php
<?php on line 5
Output:
$x = “GeeksforGeeks”;
GeeksforGeeks
echo $x; Explanation: This program use undeclared
variable $geeks so it gives error message.
echo $geeks;
?>
PHP error constants and their description :