Basically the public can submit events.
The public can sign up to be notified everytime an event is approved.
Admin user goes in and approves which ever events are submitted.
So when the admin user approves the event, I want to "ping" / "post" / "touch" (not sure of technical term) a url that actually sends out the mailout to those who want to be notified. But I do NOT want to wait for results as it could take a long time to send out all the emails. So after "pinging" the url, the admin user is taken to back to the event listings page to be able to approve more.
Is there a way to just make "ping" a url and not wait for results and just keep going?
Post/Ping to a URL without waiting for a result
Moderator: General Moderators
Timeout
Thanks for your reply.
I can't seem to get it to work though - it doesn't timeout.
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT,2);
$data = curl_exec($ch);
curl_close($ch);
Am I missing a step?
Or maybe 2 seconds is too short?
I tried to look for timeout options, maybe I another one?
Or maybe i need to do something special after a timeout?
Any help would be appreciated.
Thanks.
I can't seem to get it to work though - it doesn't timeout.
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT,2);
$data = curl_exec($ch);
curl_close($ch);
Am I missing a step?
Or maybe 2 seconds is too short?
I tried to look for timeout options, maybe I another one?
Or maybe i need to do something special after a timeout?
Any help would be appreciated.
Thanks.