Help an idiot include external web content with php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
janderson
Forum Newbie
Posts: 1
Joined: Tue Apr 13, 2004 10:02 pm

Help an idiot include external web content with php

Post by janderson »

Hi all.
This forum looks great....

Anyway, I'm a self-admitted moron. What I need to do is include external content with php (or whatever would be easiest) and have it show up with my header and footer. Additionally, I need the links to work and anything it pulls up show up again with my header footer. Kind of like what good ol' hotmail does when you open an external link... you're still in hotmail.

Anyway, i have a php include function pulling the first page in just fine. Unfortunately all of the links are broken (since they are relative, they now reference my domain) and even if I could follow a link, I think I would loose my header/footer.

Any ideas that a monkey could implement?

Thanks.
Jeff
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Code: Select all

<base href="url" />
or frames.
RadixDev
Forum Commoner
Posts: 66
Joined: Sun Mar 14, 2004 11:27 am
Location: U.K.

Post by RadixDev »

[php_man]include()[/php_man] or [php_man]require()[/php_man] functions?
Post Reply