dougthonus
Programmer
I am writing some software, and the php script that does all the database management for one section of it seems to take an absurdly long time (way longer than I think it should, but I'm not quite sure why right now, possibly a bad query somewhere that takes too long).
Anyway, I was curious, is there a way that I can can have php basically submit the long portion of this code to run in a background process instead of having the user have to wait for it to run?
Basically, I'm running something that does a post, so I want the server to act as if a user hit the url that was posted to while letting the user go do whatever.
My first thought (and what I may still try) is to do a fork, and exec lynx to go to the posted url, but I'm unsure how to include the posted data in lynx (though I could change it to a get in theory to solve the problem).
Anyway, I was curious, is there a way that I can can have php basically submit the long portion of this code to run in a background process instead of having the user have to wait for it to run?
Basically, I'm running something that does a post, so I want the server to act as if a user hit the url that was posted to while letting the user go do whatever.
My first thought (and what I may still try) is to do a fork, and exec lynx to go to the posted url, but I'm unsure how to include the posted data in lynx (though I could change it to a get in theory to solve the problem).