how to run a php when the current script finishes
<p>how to run a php when the current script finishes using curl ?
 cant use shell or set_time_limit to loop the script .</p>

<p>EDIT:
I want to be able to use curl to call the same script , but when i use curl_exec , i don't want the script to wait till curl finishes , i just want it to call the page and keep moving on without waiting curl to finish .</p>

<p>EDIT:</p>

<p>using this code on the start of the script</p>

<pre><code>ignore_user_abort(true);
header("Content-Length: 0");
header("Connection: close");
flush();
</code></pre>

<p>then using curl to make the script call it self works on windows , but on linux it doesn't ! aka , i want curl to call a page and not wait for a response</p>

<p>Thanks</p>
