Jump to content

Curl


shage

Recommended Posts

Maybe its me, im trying to grab a flv from another site using curl since the tutorial is in a series but it seems to only grab half the file, ive tried different parts of the series but again just half the flv

 

$fp = fopen ('part1.flv', 'w+');//This is the file where we save the information
$ch = curl_init($download_link);//Here is the file we are downloading
curl_setopt($ch, CURLOPT_TIMEOUT, 50);
curl_setopt($ch, CURLOPT_FILE, $fp);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_exec($ch);
curl_close($ch);
fclose($fp);

 

is the code im using thank you

Link to comment
https://forums.phpfreaks.com/topic/155514-curl/
Share on other sites

heres a random file that is pretty much how the members area is set up with the videos, it redirects to a flv but here is one i tried this one also and only get half of the flv

 

http://v1.lscache4.googlevideo.com/videoplayback?id=853267c50ad2c716&itag=5&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag&ip=174.137.163.84&signature=068635809D4151C609853A2786EE73068A10E133.4D49D4245EF03FE4CBDC374F6ACBCF8E47993F47&sver=3&expire=1240616043&key=yt1&ipbits=0

Link to comment
https://forums.phpfreaks.com/topic/155514-curl/#findComment-818434
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.