Hey I have this page running
http://snowday.nevanmedia.com/schools/test.php?id=cbstirling
see it uses a template the file is actually located at http://snowday.nevanmedia.com/schools/cbstirling and the php line I use is....
<?php if (file_exists($id)) { include ($id); } else { print "<span class=maintxt>Error</span>"; } ?>
and when you enter a id that isnt found it is supposed to just output some error text I put in. But if you go to
http://snowday.nevanmedia.com/schools/test.php it shows this
Warning: file_exists() [function.file-exists]: Unable to access in /home/blah86/public_html/snowday/schools/test.php on line 18
Why is it showing this error?