Log In · Register

 
php includes and folders.
Maccabee
post Nov 8 2008, 04:45 PM
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.
 
 
Start new topic
Replies (1 - 1)
newkidontheblock
post Nov 9 2008, 08:54 AM
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.
 

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: