Dont take this as truth mind. Im late, there's bound to be a few typos.
Theres the require, include, require-once and include once functions. I would explain myself, but its probly best for you to look at the referances.
Its pretty simple just basic statments nothing fancy. You may want to look at relative paths and soforth but its nothing taxing.
If youve got a file on your system, to go down a directory use ../ or current directory is ./
Say ive got
ROOT
|-include.php
|-index.php
|/FOLDER/
|-include1.php
|-index1.php
If i was in root which holds the index.php I can use include('./include.php');
or if i wanted to include include1.php I could use include('./FOLDER/include1.php');
So basically ./ is saying from the curent directory then telling it to either go deeper or from the current direcory.
If you were working on index1.php.
You could use ./include1.php as it is in the same directory, but to include include.php you would have to drop out of the folder directory.
You do this by doing: ../include.php
You can keep on dropping down a directory asmany times as you want untill you get to your PUB or ROOT directory.
So say I was in 5 directorys deep and i had multiple folders in each directory.
Using a combination of ../ and ./ I can select any file from any location.
However.
This is only true if the file is on the same server. If you are including a file from a remote location you have to use a full http:// address.
This is explaned in the referances.
http://uk.php.net/manual/en/function.require.php
http://uk.php.net/manual/en/function.include.php
http://uk.php.net/manual/en/function.require-once.php
http://uk.php.net/manual/en/function.include-once.php