frost Posted August 9, 2007 Share Posted August 9, 2007 I have had occassion to send out mass emails, NOT SPAM. A few times the lists were so large that they blew out the max_execution_time. Besides changing that value in php.ini is there a way to work around it? I know sleep(); doesn't do anything, does flush(); have any effect? Thanks. Link to comment https://forums.phpfreaks.com/topic/64090-solved-max_execution_time-work-around/ Share on other sites More sharing options...
lemmin Posted August 9, 2007 Share Posted August 9, 2007 set_time_limit() Whatever number you pass will increase the time limit from 30 seconds. Link to comment https://forums.phpfreaks.com/topic/64090-solved-max_execution_time-work-around/#findComment-319422 Share on other sites More sharing options...
MadTechie Posted August 9, 2007 Share Posted August 9, 2007 try echo "."; flush(); or even echo ""; flush(); after each send but maybe concat the names into one email and send it basically the script will timeout if nothing is send to the screen so send a dot or nothing Link to comment https://forums.phpfreaks.com/topic/64090-solved-max_execution_time-work-around/#findComment-319452 Share on other sites More sharing options...
frost Posted August 9, 2007 Author Share Posted August 9, 2007 Thanks! Link to comment https://forums.phpfreaks.com/topic/64090-solved-max_execution_time-work-around/#findComment-319463 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.