Rated
Read 59,824 times
Contents
Related Categories
Simple PHP includes - Introduction
Introduction
Nobody likes frames. But if you're not using frames, you have to update every
page of your site every time you modify your menu. Don't you wish there was another
way? Well, there is. Simple PHP includes allow you to create a professional,
frameless site without too much work. Want to learn how? Read on...
PHP includes are very simple and really practical. How they are used is they
allow you to use one line of code in every page that you want your menu on in
place of say 30 - 50. Also, you never have to edit this code once it's there,
you can just edit your menu file. They work by taking all the content of a file
and putting it into the file being viewed at the location where the INCLUDE tag
is.
Uhm... I dunno why I'm typing this, cuz nobody is gonna read it probably, but anyway... I am (guess my age!! haha... 14) years old and I like programming, web design, and graphic design. I'm pursuing a career in game programming. I like basketball, volleyball, skiing, snowboarding, and skateboarding. My favorite pro skater: [b]Jamie Thomas!![/b] Well... I guess that about covers it. Oh yeah... I love to play video games, I'm a Final Fantasy fanatic, I have FF7-9 and FFT, gonna get FF10... I also like the Tony Hawk's Pro Skater series. Gameboy Advance rules! :p
All content in this tutorial was created by the author, Jamie Lindgren, and may not be reproduced without the author's permission. To contact the author, please send an e-mail to wipeoutgc@hotmail.com
Comments
-
Posted by AR on 05 Sep 2004
Try using this:
include $_SERVER[DOCUMENT_ROOT]."/common/yourfile.php";
This should do it.
[url="http://www.summitcolorado.com"]Breckenridge[/url] Guy! -
Posted by altimastr on 03 Sep 2004
[email="altimastr@yahoo.com"]email me[/email] , a your instructions as follows just gives you a name for the first page when creating your example for the first half of the code but what about the se... -
Posted by shizuka on 12 Sep 2003
I gave the "corrected" code a try, but I'm using Javascript rollovers in the menu bar and now the buttons pause before loading, even though the script preloads them--and not only that, but it does tha... -
Posted by PHPeep on 10 Jul 2003
If security is not an issue, what is wrong with simply making you header, footer, sidebar content as .txt includes for example and just use the where you want them to show up in your .php fi...
Posted by fame on 09 Apr 2003
zidane,
your reply was so helpful, that i've built a site around it and registered just to thank you.
so... thank you. ;)
fame
|