RE: [PHP-WIN] Redirect stderr/Suppress imap_open error

From: Date: Fri, 26 Oct 2001 19:54:03 +0000
Subject: RE: [PHP-WIN] Redirect stderr/Suppress imap_open error
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-10056@lists.php.net to get a copy of this message
Not tried this specific function before, but whenever I want to suppress an error I put an @ sign in front of the function? If this doesn't help you then I hope it helps others, I find it useful when trying to connect to a database: $dbase = @mysql_connect("XXX", "XXX", "XXX"); If the database is not available it would dump an error to the screen without the @ in front of the command. Ross -----Original Message----- From: FPU.WHITES1@FRIENDSPROVIDENT.CO.UK [mailto:FPU.WHITES1@FRIENDSPROVIDENT.CO.UK] Sent: 26 October 2001 09:48 To: php-windows@lists.php.net Subject: [PHP-WIN] Redirect stderr/Suppress imap_open error --- Received from FPU.WHITES1 799 3703 26-10-01 09:46 -> IN=php-windows@lists.php.net Ahah... sorted. Setting: error_reporting = E_ALL & ~E_NOTICE in php.ini does the trick, though quite why imap decides to flag it up as a "notice" (described as Warning in the message) just because the mailbox is empty beats me! 8-) -Steve --------------------------------------------------------------------------- From: FPU.WHITES1@FRIENDSPROVIDENT.CO.UK To: php-windows@lists.php.net Subject: [PHP-WIN] Redirect stderr/Suppress imap_open error --- Received from FPU.WHITES1 799 3703 26-10-01 09:17 -> IN=php-windows@lists.php.net Anyone know how to redirect stderr so it doesn't appear on the screen? I'm battling with imap_open writing an error to the screen when the (valid) mailbox is empty. Cheers - Steve This e-mail may contain confidential information and/or copyright material. This e-mail is intended for the use of the addressee only. Any unauthorised use may be unlawful. If you receive this e-mail by mistake please advise the sender immediately by using the reply facility in your e-mail software. Friends Provident Marketing Group consists of the following companies: Friends Provident Life and Pensions Limited. Registered number 4096141. Friends' Provident Unit Trust Managers Limited. Registered number 970641 FP Life Assurance Limited. Registered number 782698 Friends Provident Pensions Limited. Registered number 475201 Friends Ivory & Sime Managed Pensions Funds Limited. Registered number 1020044 Registered and Head Office of each of the above companies is at Pixham End, Dorking, Surrey RH4 1QA. Registered in England. Incorporated companies limited by shares. Ivory & Sime Trustlink Limited. Registered number 151198 Registered and Head Office: One Charlotte Square, Edinburgh EH2 4DZ. Registered in Scotland. Incorporated company limited by shares. Companies within this Group transact life assurance, pension, permanent health, unit trust and investment trust business All are regulated by the Personal Investment Authority. Friends' Provident Unit Trust Managers Limited is also regulated by IMRO. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net For additional commands, e-mail: php-windows-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net This e-mail may contain confidential information and/or copyright material. This e-mail is intended for the use of the addressee only. Any unauthorised use may be unlawful. If you receive this e-mail by mistake please advise the sender immediately by using the reply facility in your e-mail software. Friends Provident Marketing Group consists of the following companies: Friends Provident Life and Pensions Limited. Registered number 4096141. Friends' Provident Unit Trust Managers Limited. Registered number 970641 FP Life Assurance Limited. Registered number 782698 Friends Provident Pensions Limited. Registered number 475201 Friends Ivory & Sime Managed Pensions Funds Limited. Registered number 1020044 Registered and Head Office of each of the above companies is at Pixham End, Dorking, Surrey RH4 1QA. Registered in England. Incorporated companies limited by shares. Ivory & Sime Trustlink Limited. Registered number 151198 Registered and Head Office: One Charlotte Square, Edinburgh EH2 4DZ. Registered in Scotland. Incorporated company limited by shares. Companies within this Group transact life assurance, pension, permanent health, unit trust and investment trust business All are regulated by the Personal Investment Authority. Friends' Provident Unit Trust Managers Limited is also regulated by IMRO. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net For additional commands, e-mail: php-windows-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#10056) next »