Re: script execution stops after mail()
| From: | Mukul Sabharwal | Date: | Thu, 16 Aug 2001 11:57:16 +0000 |
| Subject: | Re: script execution stops after mail() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-63007@lists.php.net to get a copy of this message | ||
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 <vincent@smedinga.nl> 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:
> php-general-unsubscribe@lists.php.net
> For additional commands, e-mail:
> php-general-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>
=====
*********************************
http://www.geocities.com/mimodit
*********************************
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/