[wp-hackers] set/modify the auto-incrementing ID of the wp_postmeta.

Otto otto at ottodestruct.com
Sat Aug 11 20:43:00 UTC 2012

On Sat, Aug 11, 2012 at 2:49 PM, Haluk Karamete <halukkaramete at gmail.com> wrote:
> Wasn't there a trick to run the shell commands right from within a php
> page thru the use of a back tick char?
> would that do the trick of starting a php process from within a php
> page rather than going to the console and starting it manually?

No. There's no good way to run a long running process via a web
request. Nor would you really want to do so. Loads of bad karma lies
down that path, friend.

If this is a one time thing, then just run it from a direct shell. Fast, easy.

If this is something generic that you'll have to do repeatedly from a
web page, then rearchitect so that it keeps track of state, pulls
small numbers at a time, and refreshes every so often to start the
process back up to thus continue where it left off.


More information about the wp-hackers mailing list