php includes and folders. |
php includes and folders. |
![]()
Post
#1
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 5,880 Joined: Nov 2007 Member No: 593,382 ![]() |
I have a index file and a header and footer file and the header and footer files are included into the index but my question is how do I use inlcudes on files in folders.
Cause I then have a folder call contact and i want to include the same files using php but it wont work. |
|
|
![]() |
![]()
Post
#2
|
|
![]() Offline. ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 609 Joined: Mar 2007 Member No: 507,591 ![]() |
I not sure if you want to include an entire Folder or a file within an other folder.
If you want to include an entire folder - http://forums.invisionpower.com/lofiversio...hp/t231227.html If you want to include a file from another folder - CODE <?php include("FOLDER/FILE NAME HERE"); ?> If you want to include a file from a folder that's in a different dictionary you this CODE ../ before the folder, each time you use that it will take you back one dictionary.
|
|
|
![]() ![]() |