PDA

View Full Version : not printing error messages...


jp_sympa
09-26-2005, 04:47 AM
Hi, is there a way to not print on the screen error messages when they occur?
For example a mail() function :

Warning: mail(): Failed to connect to mailserver at "mail.optusne.com.au" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in c:\program files\easyphp1-8\www\skyway.com.au\area4\end.php on line 96

Thanks.

RetroGamer1991
09-28-2005, 10:59 PM
if its a PHP error

put a @ in front of the function

MODS: MOVE TO PHP SECTION