Hi All
Before I get blasted for not searching the forum on this topic first, i am not actually quite sure what to search for, so here is my problem...
I want to create my own error notice from an error that PHP produces. For example, I get this error...
Warning: mail(): Failed to connect to mailserver at "locallsdhfkjshd" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wwroot\MyLexisNexis\bookstore\error_test.php on line 4
But i want it to display as follows:
The following error has occurred:
Warning: mail(): Failed to connect to mailserver at "locallsdhfkjshd" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wwroot\MyLexisNexis\bookstore\error_test.php on line 4
Click here to send this to our customer services center.
So what I really wanna do is put the error text into a string.
Is this possible?
Is there a PHP function to do this?