Welcome Guest, Not a member yet? Register   Sign In
19,000+ file move
#2

[eluser]pbarney[/eluser]
Moving that many files will probably take some time to do, so you will likely run up against the PHP max_execution_time (in php.ini).

So you'll want to move only a hundred files at a time or so (this is a guess... the actual number will likely be different), and then re-run the script. Use a header('location:') to automate that.

One warning though, if it's a shared web host, I would throttle it so you don't spike your disk usage.

Add a sleep(1) or something between every 10 file moves. That'll effectively add about 31 minutes to the total move, but it may prevent your process from being dumped by a watchdog process.

Hope this helps!


Messages In This Thread
19,000+ file move - by El Forum - 08-18-2010, 01:31 PM
19,000+ file move - by El Forum - 08-19-2010, 03:46 AM
19,000+ file move - by El Forum - 08-19-2010, 06:16 AM
19,000+ file move - by El Forum - 08-19-2010, 06:22 AM
19,000+ file move - by El Forum - 08-19-2010, 08:42 AM
19,000+ file move - by El Forum - 08-19-2010, 08:51 AM
19,000+ file move - by El Forum - 08-19-2010, 08:53 AM
19,000+ file move - by El Forum - 08-19-2010, 08:54 AM
19,000+ file move - by El Forum - 08-19-2010, 10:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB