View Single Post
  #5 (permalink)  
Old Jan 11th, 2008, 01:41
alexgeek's Avatar
alexgeek alexgeek is offline
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Is it possible to parse data from a different website into my website?

Monie, the stylesheet is relative the the site.
e.g.
<link href="style.css">

That would refer to a file on your site that you didn't have now that you've stolen someone's page ha.

So you have to replace the link from relative to absolute.

You'd do it like so in php:
PHP: Select all

//assume $grab holds a string of the page we got
$grab str_replace('style.css''http://www.sitename.com/style.css'$grab); 
Reply With Quote