2012-06-23 23 views

回答

0

的一種方式做到這一點是使用fsockopen()來打開一個URL來這裏exec的 是full tutorial

3

PHP不支持多線程,但您可以執行後臺任務(僅在Linux/* nix上)使用fork。你會使用這樣的:

// some logic here 
if(pcntl_fork() == 0) { 
    // initialise cURL here 
    curl_exec("http://the.uri.I/want/toCall"); 
    exit(0); 
} 
// continue with your original processing 
0

通過「呼叫從命令行中輸入URL」,我想你將執行curl。在使用at可以做的伎倆:

`echo "curl yourUrl.com/path" | at now`; 
相關問題