Below is some code in one of my pages...
<?
if (file("data/md.php")) { include "data/md.php"; }
else { include "errors/404.php"; }
?>
If the file doesn't exist display the error page instead. That works fine, apart from the anoying standard 'WARNING:' message that appears. Does anybody know how to stop these error messages from appearing altogether, or another way of re-writing the above code so it avoids displaying the 'WARNING:' sign?
I was thinking maybe instead of (IF FILE EXISTS) instead (IF FILE DOESNT EXIST)
but I dont know how to do that.
Thanx