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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.