Warning Error in PHP
What is meant by warning error in php?
Warning error is useful to identify the error function. It's main functionality is to find the missing files and the incorrect numbers of parameters in the function. It will not stop the execution of the script.
Example code :
Warning: include(demo.php): failed to open stream: No such file or directory in /opt/lampp/htdocs/Demo/sampletest.php on line 2
Warning: include(): Failed opening 'demo.php' for inclusion (include_path='.:/opt/lampp/lib/php') in /opt/lampp/htdocs/Demo/sampletest.php on line 2
is represented in the above code but the file is not exist in the directory. So the output of this function will be warning message.