lolwut
15-07-2007, 01:14 PM
Hiii,
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 like the video description.
</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'm not sure if you'd do
<?php
file_get_contents("http://youtube.com/watch?v=p0DWvta7pg0",<span id="vidDescBegin>,</span>");
?>
or something like that, any help appreciated greatly. will rep if i can.
Moved by opensourcehost (Forum Moderator) from Web Designing: Please post in the correct forum next time, thanks http://habboxforum.com/images/smilies/smile.gif.
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 like the video description.
</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'm not sure if you'd do
<?php
file_get_contents("http://youtube.com/watch?v=p0DWvta7pg0",<span id="vidDescBegin>,</span>");
?>
or something like that, any help appreciated greatly. will rep if i can.
Moved by opensourcehost (Forum Moderator) from Web Designing: Please post in the correct forum next time, thanks http://habboxforum.com/images/smilies/smile.gif.