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. Quote 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. Quote 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 Quote 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! Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.