I am writing a script that takes the url of a video on youtube and from that will get the video embed code for that video. I am using
file_get_contents();
to get the page. Once I've got the contents of the page does anyone know how I can extract the embed code?
Thanks
Geoff