A simple example and explination
$LoadPage = @include("whatever.php");
if (!$LoadPage) { echo "Page could not be found"; }
- What the above does is assigns a varibale to the include statement.
- If the page exists on the server where the path is specified, the page will load and ignore the leading variable assigned.
- If the page can not be found or loaded, it will skip the include statement and default the to leading variable assigned to the statement.