Welcome and have a nice stay !       login   register   need help?  

 Page Info

Page Title: PHP Includes
Description: This tutorial explains the basic function of PHP, called the include.
Author: Slaker
Submission Date: 26-05-2005 00:54

 Rating & Comments

View or add comments: (0)
Average members rating: 7.50



Ok, this is a very simple code for php, but it is also very useful. Php includes are very similar to html Iframes. They have the same basic use, but some people prefer using the php include, because it seems to be so much cleaner, and much more efficient. What does it do? Well, if you put the code into your page, which is shown below, the file that you name in the code will show up on the same page as the file you put the code in. For example, if you want your news page to show up on your index page, simply put this code on the index page, change the file name to your news file, and then your done! So here is the code:


Code :
// hide source code
// hide line numbers

1  <?php include('page.php'); ?>




So, now you have it. Just change "page.php" to your file name and your done!

Slaker.

Donation:

If you like our free quality work, make a donation by using Paypal and tell us what you would like to see improved on our site for the next few months.

Comments


No comments yet

 Site Activity
Currently online: 0 member(s), 40 guest(s) : All members offline.


 Quick Menu
sitemap
search
galleries
main
forums


 Our Services

Main Projects
Designers For Hire
Unique LDU Skins
LDU Skins For Sale
Seditio Skins For Sale
Templates For Sale


 Statistics
18582 registered members,
1870 topics in forums,
21586 posts in forums,
13589728 pages served since 2004-05-09.
more


 7th Version Design

+++
top