Hi,
In my php-app i tend to require a lot of data files, but if an error occurs i do not want my guests to receive the php-error and plus telling them where our data is stored on the server. Is there a way i can send my own error-message to the user?
Cheers,
Elfyn
Yes, try this:
if (!@require('bladebla.php')) { echo 'error occured'; };
The @ surpresses the 'normal' error, and the IF generates a custom error message.