This site is mobile accessible. Press the "Tap Here" button to use a different font-size.


Smartphone icons created by Freepik - Flaticon

Welcome to my home page!

PHP require Example

The missing require file throws a fatal error that prevents the rest of the script executing. It also stops the rest of the page loading.

I moved <pre></pre> element to above the failed required script so the reader may better understand what happened.

<?php require 'noFileExists.php';
echo "<p>I have a $color $car.</p>";
?>

When looking at the source code of the page, the reader will notice the file ends after the closing tag (</p>) of this paragraph.