Jump to content

PHP Time Out


napier_matt

Recommended Posts

Hi All I am currently running a script to upload email addresses into a mysql database. I have included the following two:

 

ini_set('memory_limit', '500M');

 

AND

 

set_time_limit(0);

 

However after a while it is still timing out? After 4000 entries. I understand that there are Apache settings that might need changing, could anyone advise?

Link to comment
https://forums.phpfreaks.com/topic/126852-php-time-out/
Share on other sites

Don't remember the absolute time limit for a single script but it's kinda short...

 

I did something similar and just had the script loop through in chunks.  The limit is a SPECIFIC operation...

 

so push the data up in 1000 line chunks ... the overall speed isn't that much differnet cause php loops pretty fast anyways.

 

Link to comment
https://forums.phpfreaks.com/topic/126852-php-time-out/#findComment-656149
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.