I'm looking into handling missing includes.
So far the only vaguely similar stuff I've been able to find is about using require() to prevent processing after a missing include.
What if I wanted to change the include variable or perform a redirect.
so the server is sending includes dynamically and suddenly it builds one for a file that doesn't exist.
include(http://mysite/directory1/nosuch.php);
so it registers that no file was found and then attempts
include(http://mysite/directory2/nosuch.php);
most likely the file is there but assuming it again fails to find it it tries a 3rd time
include(http://mysite/404.php);
is there a sensible way to do this? I could handle it happily with .htaccess if it was directly calling the page but what about when it has a valid page but a dud include?