Modified: added curel request time out for youtube upload
This commit is contained in:
parent
2e3b6f8b90
commit
42361489e9
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ if(isset($_POST['youtube']))
|
||||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
||||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||||
curl_setopt($ch, CURLOPT_URL, $request);
|
curl_setopt($ch, CURLOPT_URL, $request);
|
||||||
|
curl_setopt($ch, CURLOPT_TIMEOUT, 60);
|
||||||
$youtube_content = curl_exec($ch);
|
$youtube_content = curl_exec($ch);
|
||||||
curl_close($ch);
|
curl_close($ch);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue