Web Design Forum  
 
Go Back   Web Design Forum > Web Software > Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 01-14-2012, 01:13 PM   #1
Silver Member
 
Join Date: Aug 2011
Location: Tennessee
Posts: 112
Default Is there another way of including a web page into your own page other than iframe?

I used to use the php code "include" but that can no longer be used. I'm looking for a better way including one page from one of my sites into another.

One problem I have with using an iframe is that it does not link to the real page. I want a link to go to the actual page it is linked to.

Last edited by Glenn; 01-14-2012 at 08:38 PM.
Glenn is offline   Reply With Quote


Old 01-14-2012, 02:16 PM   #2
Diamond Member
 
Phreaddee's Avatar
 
Join Date: Feb 2011
Location: Newcastle, Australia
Posts: 1,137
Default

Copy n paste will do the trick if its only one page, or alternatively just have a link to it...
Whats the content? and the purpose?
__________________
if (headhurts == "possibly") {
alert ("keep going!");
}
else if (headhurts == "yes") {
alert ("go to sleep");
}
else if (headhurts == "damn !@#$ mofo scripts...") {
alert ("give up and have a beer!");
}
else {
alert ("watch TV");
}
Phreaddee is offline   Reply With Quote
Old 01-14-2012, 04:54 PM   #3
Silver Member
 
Join Date: Aug 2011
Location: Tennessee
Posts: 112
Default

Quote:
Originally Posted by Phreaddee View Post
Copy n paste will do the trick if its only one page, or alternatively just have a link to it...
Whats the content? and the purpose?
I don't quiet think copy and paste will work.

If I have the site site1a.com and I want to "include" site2b.com/newpage.htm I can't do it with include ('http://site2b.com/newpage.htm') like I used to in older versions of php.
Glenn is offline   Reply With Quote
Old 01-15-2012, 04:15 PM   #4
Gold Member
 
conor's Avatar
 
Join Date: Oct 2008
Location: Ireland
Posts: 349
Default

try using file_get_contents:

Code:
echo file_get_contents( 'http://site2b.com/newpage.htm' );
__________________
Conor
conor is offline   Reply With Quote
Old 01-16-2012, 12:53 AM   #5
Silver Member
 
Join Date: Aug 2011
Location: Tennessee
Posts: 112
Default

Quote:
Originally Posted by conor View Post
try using file_get_contents:

Code:
echo file_get_contents( 'http://site2b.com/newpage.htm' );
That helped. Thanks!
Glenn is offline   Reply With Quote


Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:38 AM.


Camera Forum - Computer Forum - Web Design Forum

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.