Hi,
Can I put all errors which PHP outputs when error_reporting(E_ALL); is activated into a variable? I want to react if an error occurs.
I'm working on a Script to check if an ftp is running or not. The only way to get the error message of the ftp when the connection fails is if error_reporting(E_WARNING); or error_reporting(E_ALL); is activated. I want to format the Error Message. E.g. The errormessage is:
Warning: ftp_login() [function.ftp-login]: Sorry, Over 2 connection not allow in c:\inetpub\wwwroot\scripts\vbb_ftp.php on line 13.
I only want this output: "Status: Sorry, Over 2 connection not allow "
Thx for your help!