Hi,
I am looking for help with trying to get hold of a bit of source code on a web page. For examples sake, let’s say it’s YouTube, and I want to get the video description.
For example. Let’s say the URL is http://youtube.com/watch?v=p0DWvta7pg0
and I want to get this code off the page and onto mine:
<span id="vidDescBegin">
This is the code I want to get onto my page.
</span>
I want to do this as my site has a few of my favourite YouTube videos on it and I would like for the video descriptions to come up below the videos.
I think it’s possible to use file_get_contents(); and eregi(); to do this but I’m not sure.
If anyone can help me out, thanks.