RE: [PHP-DB] How to write errorhandling??

2001-10-22 Thread Rick Emery
First, that "Failed to Connect" message looks like a database failure to connect message; nothing to do with mail() Second, are you REALLY trying to send header info at line 256? That's pretty far down in a program. Usually, those decsions are made within the first 10 to 20 lines. So, is line 2

Re: [PHP-DB] How to write errorhandling??

2001-10-22 Thread Dobromir Velev
-Original Message- From: DL Neil <[EMAIL PROTECTED]> To: Dobromir Velev <[EMAIL PROTECTED]>; [EMAIL PROTECTED] <[EMAIL PROTECTED]>; [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Monday, October 22, 2001 2:29 PM Subject: Re: [PHP-DB] How to write errorhandling?? >Luditu

Re: [PHP-DB] How to write errorhandling??

2001-10-22 Thread DL Neil
Luditus/Dobromir, It IS possible to run the mail function on a Win machine - I had a Win2000/IIS(with its own SMTP stub) box running PHP mail happily. Also it is possible to have a Win-with-no-local-SMTP configuration. I have re-jigged my WinNT portable to run the same PHP/Apache script connecti

Re: [PHP-DB] How to write errorhandling??

2001-10-22 Thread Andrey Hristov
That's correct. I've seen a discussion on dev phorum about embeding SMTP code in PHP, but as I remember the final decision was that SMTP code will stay outside of PHP code. -- Andrey Hristov Web Developer Icygen Corporation BUILDING SOLUTIONS http://www.icygen.com On Monday 22 October 2001

Re: [PHP-DB] How to write errorhandling??

2001-10-22 Thread Dobromir Velev
Hi, I see that everybody is looking for the error in the header function - but the error actually is that Luditus is trying to use mail on a Windows box with no SMTP server on it. It is possible to suppress the mail function output using @mail, but it won't fix the problem - if you want to use mai

RE: [PHP-DB] How to write errorhandling??

2001-10-21 Thread Beau Lebens
:31 AM // To: [EMAIL PROTECTED] // Subject: Re: [PHP-DB] How to write errorhandling?? // // // Unfortunatelly this doesn't work at all. Same error. Any other ideas? // // Cheers // // Luditus // // // "Attila Strauss" <[EMAIL PROTECTED]> schrieb im Newsbeitrag // 01102

Re: [PHP-DB] How to write errorhandling??

2001-10-21 Thread Pierre-Alain Joye
Hello, > Warning: Cannot add header information - headers already sent by (output > started at > e:\projects\globosapiens\07_production\actual\account\include\user.php:256) > in e:\projects\globosapiens\07_production\actual\account\include\user.php > on line 260 > Where is the problem??? I can'

RE: [PHP-DB] How to write errorhandling??

2001-10-21 Thread Matthew Loff
If you use the at symbol to supress the error message from being printed, the if() statement will still recognize an error has occurred... So, try this: if (@mail($email,$subject_confirm_account, $message_confirm_account, $from_confirm_account)) { HEADER("Location:index.php?fuseaction=t

Re: [PHP-DB] How to write errorhandling??

2001-10-21 Thread zpr
"Attila Strauss" <[EMAIL PROTECTED]> wrote in message 01102113081306.00694@pluto">news:01102113081306.00694@pluto... > hi > > do an > > exit; > > after the header(); > > cu > attila > > > > On Sunday 21 October 2001 12:45, Luditus wrote: > > Hi Fokes, > > > > I would like to send an mail via the

Re: [PHP-DB] How to write errorhandling??

2001-10-21 Thread Luditus
Unfortunatelly this doesn't work at all. Same error. Any other ideas? Cheers Luditus "Attila Strauss" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 01102113081306.00694@pluto">news:01102113081306.00694@pluto... > hi > > do an > > exit; > > after the header(); > > cu > attila > > > > On Sunday 21

Re: [PHP-DB] How to write errorhandling??

2001-10-21 Thread Jesse Goerz
On Sunday 21 October 2001 06:45, Luditus wrote: > Hi Fokes, > > I would like to send an mail via the mail function. > > If the mail failes I would like to redirect to an errorpage. > Currently my code looks like this: > > if ( mail($email,$subject_confirm_account, > $message_confirm_account, $fro

Re: [PHP-DB] How to write errorhandling??

2001-10-21 Thread Attila Strauss
hi do an exit; after the header(); cu attila On Sunday 21 October 2001 12:45, Luditus wrote: > Hi Fokes, > > I would like to send an mail via the mail function. > > If the mail failes I would like to redirect to an errorpage. Currently my > code looks like this: > > if ( mail($email,$subje