Forum Moderators: coopster

Message Too Old, No Replies

Set False Site Root

         

fretmasters

12:11 am on Apr 18, 2008 (gmt 0)

10+ Year Member



Hi all, I'm messing around with cURL and have the following code:

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]

g1smd

9:36 pm on Apr 21, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Use the <base> tag within <head>.

That will change ALL links on the page.