Jump to content

I need an alternative to set_time_limit


btray77

Recommended Posts

I need to do something other than use set_time_limit(); 

 

I still get timeouts on huge database imports.  (Command line is not available, and the data feed is not a standard format, so there is no real way of doing mysql's CSV or XML import command)

 

I am importing about 100,000 products, and images from a datafeed.  I have NO problems if I don't have to download the images, but the time that it takes to download the images causes the system to timeout.  (and it's not from a browser timeout issue, I've got it sending data to the screen each time it does an action)

 

 

I was thinking about possibly using ajax to call the script to run 1 query at a time, but I'm not sure how to do this. 

 

1. Anyone know of a tutorial on something like this?  (I have jquery loaded)

2. If this is not a "good" way, can you give me an idea of how you would do this?

 

Thank you

 

-Brad

Link to comment
https://forums.phpfreaks.com/topic/177515-i-need-an-alternative-to-set_time_limit/
Share on other sites

If you just want to import sql file to mysql database,

try bigdump.

 

You need to upload the sql file to your server.

then configure the username, pwd, host and the database name that in the script.

 

It is useful to import large database file.

Last time I was using phpmyadmin to import but it fails, so I switch to bigdump now.

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.