Go Back   Gaming Gutter > Non-Gaming > Programming > Tutorials


Tutorials - Looking for programming tutorials to increase your knowledge? Do so here.

» Site Navigation
» Home
» FAQ
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Advertisement
» Recent Threads
Go to first new post Trading Neopoints for...
Today 05:11 PM
Last post by Kyle is King
Today 05:11 PM
0 Replies, 1 Views
Go to first new post [S] Awesome Very Young...
09-04-2008 04:00 PM
Last post by NextGenWarrior
Today 05:11 PM
8 Replies, 9 Views
Go to first new post Selling Pets (bd, uc...)
Yesterday 12:13 AM
Last post by CrazySpades
Today 05:09 PM
11 Replies, 12 Views
Go to first new post COME TO VENT NAO!!
Today 01:00 PM
Last post by the dark ninja
Today 05:08 PM
2 Replies, 3 Views
Go to first new post Selling lab account with...
Today 04:08 PM
by drdd10
Last post by drdd10
Today 05:08 PM
4 Replies, 5 Views
Reply
 
LinkBack Thread Tools Display Modes

 PHP Include
Old 10-18-2006, 03:40 PM   #1 (permalink)
Oosband
Guest
 
Posts: n/a
iTrader: / %
PHP Include

PHP includes is server side language which means to "include" or "gather" from another source.
For this tutorial we will have two files: "index.php" and "example.php"

Make the contents of example.php:
Quote:
Hello World
Make the contents of index.php:
Code:
<?php include("example.php"); ?>
This code opens by stating it will use a PHP function [include]. The file is enclosed in brackets and speech marks making it clear which file will be included. Then the function is closed at the end of the include as we no longer need PHP accessible on this webpage.
When index.php is opened, it will show the contents of example.php
This can be done with a large variety of file types.
Most people use this so they only have to update one file instead of many that may be linked to it, for example a navigation menu - you may need to add a single link, where you would have to update each page normally, we could simply edit the one file "Menu.php" and include the other link.
  Reply With Quote
Reply

Bookmarks



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GMS] Latest Hack Addresses 0.31 (Updating)CodeCaves Include blan420 MapleStory 0 11-11-2006 03:21 PM

Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -7. The time now is 05:12 PM.


vBulletin skin developed by: eXtremepixels
The contents of this webpage are copyright © 2006-2008 GamingGutter.com. All Rights Reserved.

Page generated in 0.09599400 seconds (100.00% PHP - 0% MySQL) with 20 queries