Re: Escapeing the execution time....
| From: | Steve Lawson | Date: | Tue, 17 Oct 2000 12:24:52 +0000 |
| Subject: | Re: Escapeing the execution time.... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-20601@lists.php.net to get a copy of this message | ||
Yo,
Any good with perl?
You could make a perl script that gets a page, that page could send a single
email.
Below is a perl script that will do just that. The mail.php page would just
send 1 email each loop.
#!/usr/bin/perl
use IO::Socket;
$count = 0;
while(1)
{
sleep(10);
$count++;
$s = IO::Socket::INET->new(PeerAddr => "111.222.111.111" , PeerPort =>
80);
if($s)
{
$s->autoflush(1);
print $s "GET /www/htdocs/user/mail.php?user=" , $count , "\r\n";
shutdown($s , 2);
}
else
{
open(ERR,">>/www/htdocs/user/.errors");
print ERR "[Error] Couldn't connect to 111.222.111.111.\n";
close(ERR);
}
}
----- Original Message -----
From: "Maxim Maletsky" <maxim@japaninc.net>
To: "'Dallas Kropka'" <dallask@firstworld.net>
Cc: "'PHP General List. (E-mail)'" <php-general@lists.php.net>
Sent: Monday, October 16, 2000 11:53 PM
Subject: RE: [PHP] Escapeing the execution time....
> change the PHP.ini settings...
>
> but, why don't you do something to the script itself? would work better..
>
> -----Original Message-----
> From: Dallas Kropka [mailto:dallask@firstworld.net]
> Sent: Tuesday, October 17, 2000 5:03 PM
> To: PHP LIST
> Subject: [PHP] Escapeing the execution time....
>
>
> I have a mailing list that will only be used once a month or so, and I
> run into the problem that the script will only send what it can in the
> default 30 seconds, then terminate....
>
> is there a way to escape the script time limit.... with out setting it
> higher manualy?
>
>
----------------------------------------------------------------------------
----
> --
> 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