>> that exists on another server though
not many users use those kind of browsers, because if they do most of
the websites which use CDNs will not work.
Firstly, it is not a good idea to fetch an entire web page and snow it
to an user. (use iframes if this is a must)
Secondly, this idea may not be feasible if the web page in question
uses AJAX, because none of the browsers allow cross domain AJAX
As a side note, use str_replace("<head>", "<head><base....></base>",
$text) if base tag doesnot work
On 02/10/2009, Ashley Sheridan <a...@ashleysheridan.co.uk> wrote:
> On Fri, 2009-10-02 at 12:51 +0530, kranthi wrote:
>> using the <base tag is a solution to your problem if the links are
>> but I am not sure if base tag works outside <html></html>....
>> try... <base href="URL"></base> before curl_init()
>> where URL is parsed using PHP's parse_url() function on http://example.com
>> in either case if there are any external js/css files cURL wont fetch
>> external files(and if they are internal/inline your browser should
>> display them already).. your browser will have to fetch them for you,
>> net console of firebug will be helpful in that case.
> that exists on another server though. The <base> tag can be used to
> settings on client agents.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php