|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 |
|
Silver Member
![]() Join Date: Aug 2011
Location: Tennessee
Posts: 112
|
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. |
|
|
|
|
|
#2 |
|
Diamond Member
![]() Join Date: Feb 2011
Location: Newcastle, Australia
Posts: 1,137
|
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"); } |
|
|
|
|
|
#3 | |
|
Silver Member
![]() Join Date: Aug 2011
Location: Tennessee
Posts: 112
|
Quote:
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. |
|
|
|
|
|
|
#4 |
|
Gold Member
![]() Join Date: Oct 2008
Location: Ireland
Posts: 349
|
try using file_get_contents:
Code:
echo file_get_contents( 'http://site2b.com/newpage.htm' );
__________________
Conor |
|
|
|
|
|
#5 |
|
Silver Member
![]() Join Date: Aug 2011
Location: Tennessee
Posts: 112
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|