作成日:2018-02-02, 更新日:2018-02-14

秒で指定

$ch = curl_init();
curl_setopt($ch, CURLOPT_TIMEOUT, 60); // 60秒

ミリ秒で指定

$ch = curl_init();
curl_setopt($ch, CURLOPT_TIMEOUT_MS, 500); // 500ミリ秒