Friday, September 7, 2007

Remote content

Sadly the blog fell by the "i'm busy" wayside this week.

It didn't help that I didn't do anything particularly interesting.. .. ..

Only one this was moderately interesting. On the site, we have terms of use, and a privacy policy. Other sites within the realm use the same one, but previously someone just emailed them the content, and they repurposed it for their site. This was great.. until we updated them recently, and found many of the satellite sites are now out of date.

I created a version without a header, or footer, or styles. I've put the files in an easily accessible place, and have supplied the other sites with some simple code.

I wrote some pretty functions and stuff to go around it, but the code basically was this:
$this->data = join('',file($url));

Woot!

BFN

No comments: