Reputation: 1
Upvotes: 0
Views: 2589
Reputation: 3362
You can make another script that will send the request and you can then run it from your main script with a shell command by appending &
or | at now
at the end of the command to move the process in to background.
Upvotes: 0
Reputation: 36984
What about exec() ?
Something like:
$code = escapeshellarg("file_get_contents('http://www.site.com/etc...');");
exec("php -r {$code} > /dev/null 2>&1 &");
More info about those arguments.
Upvotes: 1
Reputation: 5196
use CURL .See http://php.net/manual/en/book.curl.php for more details
Upvotes: 0