How do I make sure an include file exists before loading the page?
For instance if it is not just a stylesheet you are including but a file containing data that the page won't make sense without.
<?php
require("musthavethis.php");
//fatal error if not present
include("takeitorleaveit.html");
//if not present just an error message, script continues to run
?>
Comment on this Question and Answer >>>
ASK A QUESTION
More website PHP Questions
where do i go to paste my google adsense code?How to expire cookies when user pressed a button in webpage? I want have a link in my website then delete cookies.
How to run a php script on different browsers?
I need to send confirmation email after registration!! I have my own domain!! do I need any smtp id or something?? if yes, how to get that?
my web site www.innovativephp.com is not configured properly to dns how can i do that?
