
| Site Stats |
| Currently: 5 online
Total Hits: 3095842 |
| Domain Info |
| - Hosting brought on 06/19/2003 - Hosted by Ace-host recommended - 5GB space 60Gb data/month |
| Display information |
Optimised for:
1024 x 768 resolution Internet Explorer Macromedia FlashAlso tested and working in: Netscape Mozilla Firefox
|
| Being Validated |
|
| Girl |
| Char, 20, female, British, Gemini, ...more? |
| Alternative Navigation |
Girl Domain Tutorials Goodies Etc Clear |
| Recommended |
![]() |
| Change skin |
| Give a gift :) |
| Cam |
|
|
| Affiliates |
| Top 15 Referrers |
| 1) cute-spot.com [6765] 2) cute-spot.com [4134] 3) veredgf.fre... [3463] 4) carrieware.com [1678] 5) bouncy-bubb... [966] 6) divergente.org [846] 7) rainbow-bit... [744] 8) bouncy-bubb... [733] 9) shatteredel... [639] 10) rainbow-bit... [635] 11) yanhuahuo.b... [630] 12) cute.startk... [584] 13) users.volja... [565] 14) kao-ani.com [541] 15) so-juicy.net [537] |
| Search |
|
|
| so-youNET Advertisments! |
![]() comotized.com |
|
Want to advertise here? Email me char@so-you.net click here for details |
| PHP includes Tutorial |
|
PHP includes are an important part of PHP. With HTML sometimes it gets very annoying having to change everything if for example you change your layout, it can be very time consuming ! PHP includes break down this process so that can have a header.php file and a footer.php file and these will appear on every main page, so if you were to change your layout you would only have to change these two files ! 1. Here is an example of the HTML page, it is a very simple page to make it easier for you to understand. Basically this coding would be on every individual page but the only bit that would change would be where the content is. So you see how inefficient this is? <head> <body> <div id="footer">Copyright char</div> 2. Take the top part of your coding that is always the same with each page <head> Now paste this into notepad and save it as header.php 3. Take the bottom part of the coding that is the same with each page. <div id="footer">Copyright char</div> Now paste this into notepad and save it as footer.php 4. Now you will be left with the middle part... this should change with each page as this is the actual content. So now we can join this together <?PHP include ("header.php"); ?> <body> <?PHP include ("footer.php"); ?> Now you could name this file content.php, or whatever, but make sure it ends in .php ! and for another page for example tutorials.php you could use the same coding, eg <?PHP include ("header.php"); ?> <body> <?PHP include ("footer.php"); ?> The header and footer will be the same, just the content will change, so then if you decide to change your layout, you will only need to edit header.php and footer.php! © Char. Please do not copy this tutorial or any others. |