Jump to content

Adding variable to this..


V

Recommended Posts

I'm using CURL to retrieve thumbnails from youtube videos and save into a image folder.

 

I'm trying to replace the url in this code

 

 

curl_setopt($ch, CURLOPT_URL, 'http://img.youtube.com/vi/QYHzyLrtvBY/0.jpg');

 

with this

 

http://img.youtube.com/vi/echo $out['v'];

 

echo $out['v] echoes that long youtube code at the end. I tried more variations but I keep getting errors, is it possible to use a variable with CURL?  :-\

 

 

Link to comment
https://forums.phpfreaks.com/topic/206601-adding-variable-to-this/
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.