Re: [PHP] script execution stops after mail()

2001-08-16 Thread Mukul Sabharwal

Hi,

Well the PHP script is timing out after it executes a
no. of (or all the mail() commands). So what you got
todo is either set the PHP's timeout limit to 0 or
infinite.

set_time_limit(0);

Or you could invoke another program in the background
disconnect PHP (terminal) from it, and voila. But if
you want the mail command to be executed before
anything else you will have to set the execution limit
to infinite, or increase it to a very big limit, and
also use ignore_user_abort(1);

--- Vincent [EMAIL PROTECTED] wrote:
 Hi,
 
 I've been skipping a night over this strange error:
 after execution of a mail() command, de rest of the
 script just gets ignored and my browser displays a
 Cannot find server or DNS Error page instead.
 
 Ideas about how to make this baby work would be
 very welcome; thanks in advance.
 
 I'm using PHP 4.0.6 on Apache/1.3.20 and
 sendmail -t -i. Just in case that helps.
 
 Vincent
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 To contact the list administrators, e-mail:
 [EMAIL PROTECTED]
 


=
*
http://www.geocities.com/mimodit
*

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] script execution stops after mail()

2001-08-16 Thread Mukul Sabharwal

Hey,

It can be issues that PHP doesn't have control over
for example if your systems' sendmail is being used by
100's of users, maybe it's taking for your request to
be processed. So it could be more than just PHP, but
you should basically when sending mail just but the
mail in background.


--- Vincent [EMAIL PROTECTED] wrote:
 Thanks, but for now the mail()-function is only
 used once. I already found the timeout-issue in
 the manual and will use your tip when I expand
 it to serve a mailing list.
 
 Have you ever heard of this problem before, so
 it could be a bug? Or is there something special
 with the quotes to do? I remember an earlier
 website I built that had problems too, but they
 were solved when I replaced single quotes by
 doubles. Back then, the error-page didn't
 appear also.
 
 Vincent
 
 
 -Original Message-
 From: Mukul Sabharwal
 [mailto:[EMAIL PROTECTED]]
 Sent: donderdag 16 augustus 2001 13:57
 To: Vincent; [EMAIL PROTECTED]
 Subject: Re: [PHP] script execution stops after
 mail()
 
 
 Hi,
 
 Well the PHP script is timing out after it executes
 a
 no. of (or all the mail() commands). So what you got
 todo is either set the PHP's timeout limit to 0 or
 infinite.
 
 set_time_limit(0);
 
 Or you could invoke another program in the
 background
 disconnect PHP (terminal) from it, and voila. But if
 you want the mail command to be executed before
 anything else you will have to set the execution
 limit
 to infinite, or increase it to a very big limit, and
 also use ignore_user_abort(1);
 
 --- Vincent [EMAIL PROTECTED] wrote:
  Hi,
  
  I've been skipping a night over this strange
 error:
  after execution of a mail() command, de rest of
 the
  script just gets ignored and my browser displays a
  Cannot find server or DNS Error page instead.
  
  Ideas about how to make this baby work would be
  very welcome; thanks in advance.
  
  I'm using PHP 4.0.6 on Apache/1.3.20 and
  sendmail -t -i. Just in case that helps.
  
  Vincent
  
  
  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  To contact the list administrators, e-mail:
  [EMAIL PROTECTED]
  
 
 
 =
 *
 http://www.geocities.com/mimodit
 *
 
 __
 Do You Yahoo!?
 Make international calls for as low as $.04/minute
 with Yahoo! Messenger
 http://phonecard.yahoo.com/
 


=
*
http://www.geocities.com/mimodit
*

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]