Forum Moderators: coopster
php Code:
<?php
$curl_handle=curl_init();
curl_setopt($curl_handle,CURLOPT_URL,'http://youtube.com/watch?v=EwnlRATD3Jk');
curl_exec($curl_handle);
curl_close($curl_handle);
?>
This generates the following page: <snip>
The videos don't show up on that page because the source of the embedded video player is linked to by "/player2.swf", so instead of loading the swf file from "http://youtube.com/player2.swf" it loads it from "http://example.com/player2.swf". I was wondering if there is a way to set a false root directory or use cURL to change all the "/" links to "http://youtube.com/".
Any help is appreciated.
Thanks.
[edited by: dreamcatcher at 7:40 am (utc) on April 18, 2008]
[edit reason] no urls as per T.O.S [webmasterworld.com].Thanks [/edit]