| Welcome to WebmasterWorld Guest from 184.108.40.206 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
I am including some content from another domain using PHP. The url's in the links are relative. What is the easiest way to include the content of linked page?
For example, I include otherdomain.com/foo.html in mydomain.com/include.php. foo.html has a link to bar.html. I don't have a page for bar.html on my server.
What is the best way to include bar.html from otherdomain using PHP?
I thought about a custom 404 page but am wondering if there is a simpler solution that doesn't generate an error.
Can you not just add 'othersite.com/' to the beggining of foo.html and open it the same way as the first page?
i have the same need -
i had been using a simple php include tag - then with new php load the include function went away --
[edited by: jatar_k at 7:28 pm (utc) on Mar. 21, 2003]
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved