I am using the PHP include statement to enable publication of a piece of news. The news is filed as "news.txt" and the user has access to a directory to upload the file or delete old news but no access to the code.
If the file does not exist there will be a cryptic error message. What I want to do is enable another include which will load another txt file with the message for example: "Awaiting news" if "news.txt" is removed, because its old news.
Perhaps Googling file_exists will give you a few examples? Anyway, this is the first example from the page you supposedly read: ... Apologies to ... for the reproduction. Doesn't that answer your question? What is it you don't understand specifically?