Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mailing list and timeout

Status
Not open for further replies.

Sleidia

Technical User
May 4, 2001
1,284
FR
Good Morning,

Does anyone know how to avoid timeout
problems with mailing list code?

I've written a loop which reads a mysql table
row by row, and send an e-mail each time an
e-mail addresse is found in a row.
But when thousands of rows are processed with this
loop, there are case when a timeout error occurs.
Also, I've tried to run the script in the background,
but it didn't look like it worked.
Any idea?

Thanks a lot.
 
hello,

try using set_time_limit(0) in the script.
that will run the script forever.

u can also set a max time limit for a script to run
in your php conf file by setting parameter max_execution_time .

hope that will help u.
spookie
 
Dear Spookie,

Thanks a lot for your helpful message.
I am going to test is ASAP.

Have a good day.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top