Results 1 to 3 of 3
-
18th Sep 2010, 04:01 AM #1
OPMember
Noob question about PHP Curl
Hi everyone,
This is just a noob question.
I'm wondering if PHP Curl can run asynchronously or run in background?
I'm developing a script for Wordpress plugin and fire when publish a post.
When publish a post, it will fire another script with curl.
But the other script take a very long time to finish, and Wordpress waiting for it.
So i need some advice from you guys how to run it in background.
Thanks everyone. I like this forum. KWWH rocks!mixmax Reviewed by mixmax on . Noob question about PHP Curl Hi everyone, This is just a noob question. I'm wondering if PHP Curl can run asynchronously or run in background? I'm developing a script for Wordpress plugin and fire when publish a post. When publish a post, it will fire another script with curl. But the other script take a very long time to finish, and Wordpress waiting for it. So i need some advice from you guys how to run it in background. Thanks everyone. I like this forum. KWWH rocks! Rating: 5
-
19th Sep 2010, 11:36 AM #2
MemberWebsite's:
litewarez.net litewarez.com triniwarez.comFirstly you should understand that PHP Processor runs on a single thread, soi you can perform task's without taking advantage of other methods.
The method I would do is pinger.
within you code you should insert the post into the database and get the ID and do
So that you can write the id to a directly, then you set up a cron system to run every hour, and the PHP page executed by cron would open up the text file and read the id's and select them from database to be sent elsewhere.PHP Code:$src = fopen('some text file','a+');
fwrite($id,$src);
fwrite(',',$src);
fclose($src);
Join Litewarez.net today and become apart of the community.
Unique | Clean | Advanced (All with you in mind)
Downloads | Webmasters
Notifications,Forum,Chat,Community all at Litewarez Webmasters

-
20th Sep 2010, 08:34 AM #3
OPMemberThanks litewarez.
Finally i manage to get it working.
I'm using:
ignore_user_abort(true);
set_time_limit(0);
and output buffering.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
VPS noob question, Help
By jasoothai in forum Server ManagementReplies: 19Last Post: 10th Jun 2012, 07:19 AM -
Noob Question
By arjaylieann23 in forum Webmasters, Money MakingReplies: 7Last Post: 23rd Aug 2011, 03:20 AM -
A noob question
By praveer in forum General DiscussionReplies: 16Last Post: 23rd Jul 2011, 05:14 PM -
A noob question
By cyano in forum General DiscussionReplies: 12Last Post: 25th Apr 2011, 01:49 PM -
Noob question about RDP
By sefstar2uk in forum General DiscussionReplies: 2Last Post: 13th Oct 2010, 01:24 PM








Register To Reply

Staff Online
themaCreator - create posts from...
Version 3.55 released. Open older version (or...