FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


How to Use Include





Possum
Hi

Most of my web pages have a printer friendly page which is an exact duplicate of the main content page without menus.

You can see what I mean on this page. Just click the printer icon to see the Printer friendly page.

http://udopage.com/

Since the Printer Friendly page's content is exactly the same as the main pages content could I somehow just include that page in my main page by using php. That way I'm not doubling up..

I'm not too sure how to do this if it is possible..

I hope I have explained this properly..

Thank you..
Bondings
It's possible and advised to do it this way instead of doing double work.

However, you might need to change the code on the include pages.

You can include another php file as follows:
Code:
include 'file.php';

And it would be like that file is insert in that line.
Related topics
Do we support php include and/or SSI?
Aprender a Usar un Include.
php include path
Wonders of the include() in PHP.
PHP include code problem
[php] secure dir prevents include?
php include
.html using header/footer include script?
PHP include()
include() for phpbb = blank?
Require and Include
include
How to Include my site in DIRECTORY???
Help with include --Solved--
Server Side Include (HTML in HTML)
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.