E.g
<?php
//GetParameters here
//send response/end connection
//keep executing the script with the retrieved parameters.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could do this, it just might take some tinkering. Instead of trying to close the connection on the first script, you need to process the data with a different script.
otherscript.php
Just to explain, when curl connects it gets a connection closed header so curl quits. Meanwhile the “otherscript” is processing the data with no open connections.
I’m pretty sure using exec() may also be an option. You could simply call otherscript using php on the command line passing the variables as cmd line arguments. Something like this should work for you if you are running linux:
Now otherscript.php is running in the background under a different process id