set_time_limit(0);

curl_setopt($ch, CURLOPT_TIMEOUT, 50);

İşe yaramazsa site adresini paylaşırsanız ona göre bakalım hocam.