homepage Welcome to WebmasterWorld Guest from 54.197.147.90
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Included Content
mbennie




msg:1252519
 9:02 am on Mar 21, 2003 (gmt 0)

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.

 

Nick_W




msg:1252520
 9:06 am on Mar 21, 2003 (gmt 0)

Can you not just add 'othersite.com/' to the beggining of foo.html and open it the same way as the first page?

Nick

iggy99




msg:1252521
 7:12 pm on Mar 21, 2003 (gmt 0)

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]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved