When getting a file's contents, I do the following:
However, if the file doesn't exist, it still shows the error message before running viewall(); How can I make it now show the error message?Code:$info = file('cat' . trim($id) . '.txt') || viewall();




Reply With Quote