0

guys.

I'm new to PHP, so please be patient.

See, I have the following piece of PHP code on the index.php of a site I'm creating for learning purposes.

<?php 
include_once 'musica.php';
?>

The problem is, this file 'musica.php' doesn't exist. So, it was supposed to show a warning, according to the video I am watching. But it doesn't. The page shows the content of the index.php, with no warning whatsoever. I am using php 7.0.22. Is this because of the version I'm using, or is there a setting to correct this behavior?

Thank you for your patience.

  • Also dupe https://stackoverflow.com/questions/845021/how-to-get-useful-error-messages-in-php – PeeHaa Sep 12 '17 at 20:38
  • 2
    You probably have error printing disabled. Try adding `ini_set("display_errors", "on"); error_reporting(E_ALL);` after the opening tag. – ishegg Sep 12 '17 at 20:38
  • 2
    [How do I get PHP errors to display?](https://stackoverflow.com/questions/1053424/how-do-i-get-php-errors-to-display) and [error_reporting](http://php.net/manual/en/function.error-reporting.php) – FirstOne Sep 12 '17 at 20:38
  • You probably just need to turn on display_errors in your php.ini. – Brian Gottier Sep 12 '17 at 20:38

0 Answers0