I have a script which 'includes' certain text files (ed include($link) )...anyway.....when a file is not there...the include function gives an error message......how do I manipulate this standard message......can someone give me an example script?
thanx,
niels
Put a @ in front of the include
like this:
@include($link);
That will supress all error messages..
Andreas
You better check first if the file exists; example:
if (file_exists($file)) { include($filename); } else { echo"Your error message here"; }
regards, Matthias