directories help. |
directories help. |
![]()
Post
#1
|
|
Senior Member ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 354 Joined: May 2007 Member No: 526,982 ![]() |
so i got how to do the headers & footers stuff (i use php includes)
but when i do mysite.com/folder/whatever.php it shows up a blank page? |
|
|
![]() |
![]()
Post
#2
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 5,880 Joined: Nov 2007 Member No: 593,382 ![]() |
If you have another folder you need to add ".." to the directory.
So instead of <?php include(/header.php) ?> Change it to: <?php include(../header.php) ?> two periods tell it to go a folder back. So if you have a folder in a folder you would then have to use two sets of dots. ../../header.php Putting the header and footer file in each folder would ruin the point of includes. Edit: ^No dont ever use the full url in includes. That will mess it up. |
|
|
![]() ![]() |