[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re[2]: [kDev] PHP gurus: quick fix coding question...



Hello,

Sorry, thought you wanted to run a batch script not email everyone
from a cybercafe on the spot. Yes, Scott's solution is better than
mine then in the short term. Later on you can write your letter, click
to enter it into a database, and let a batch script run on it to send
it out (then you can put lots of error logging, run it at off-peak
times should the server be loaded, etc).

Phillip.

Monday, May 19, 2003, 12:06:16 PM, you wrote:

SS> If at the top of the PHP page you put the two directives, you can hit
SS> the 'stop' button on your browser and walk away.  If you want
SS> confirmation that it ran, create a file-based or DB based log file with
SS> relevant data that you can check later.


SS> On Mon, 2003-05-19 at 11:01, Daniel Harris wrote:
>> Hi Scott and All,
>> 
>> I should have put more emphasis on the speed of the operation rather 
>> than the need for it not to time out. For example if I'm in a Internet 
>> cafe in some foreign land and I get that urge to send out a Kendra 
>> newsletter I can't be waiting for half an hour for the zspamall.php to 
>> fully load with an "all sent". I just need to click send and leave. So, 
>> the operation has to be carried out by a non-webpage script, yes?
>> 
>> Cheers Daniel
>> 
>> On Monday, May 19, 2003, at 10:44  am, Scott Switzer wrote:
>> > @set_time_limit (0);
>> > @ignore_user_abort(true);
>> >
>> > The script will not timeout (except in some cases where the script runs
>> > overnight - then it stops at midnight for some reason...)
>> 
>> 



-- 
Best regards,
 Phillip                            mailto:philliptemple@xxxxxxxxxxx