Leave a Reply

1 comment

  1. My advice is to not do long running bulk-operations over a web-connection in the first place. PHP works just fine from the command line.

    Write your one-time script to do whatever it is that you need it to do. If you need access to WordPress functions in that process, then include the wp-load.php file at the top of the script.

    Then, go to a shell prompt on your server, and do “php yourscript.php” to run it. Command line PHP doesn’t have run-time limitations on it and it will take as long as it takes.