I need to use php to send an asynchronous post to a php script.  In 
other words, I need to post to a script, ignore what it responds, get on 
with what I was doing without waiting for it to finish, and meanwhile 
the script I called keeps on working without me.  I know how to receive 
an asynchronous post, because paypal sends an IPN, which is an 
asynchronous post.  (The reply my IPN handler sends back is just a new 
post, its own new event in its own thread.)  How can I get my php script 
to fire off an async http post like the IPN hit paypal sends?  I want to 
issue a php script a command it will take a long time to complete, and I 
don't want my php script waiting around for the completion of that task 
it assigned.  Waiting like that causes the called script to occupy its 
own memory while my calling script sits on hold occupying all its own 
memory too.  If my calling script is more memory intensive than the 
called script, but the called script simply takes longer, then the total 
memory burden on the servers equals the memory space of the calling 
script times the run time of the called script.  That hogs the server 
much more than letting my calling script get it over with and free up 
the memory the caller is holding.  So I want to know how to get my 
calling script to send an async http post to another php script and not 
wait for the result.  And I need to use php to do it.  (I use php 4).

Reply via email to