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: Member Posts: 1,237 Joined: May 2008 Member No: 648,123 ![]() |
^ not every host uses a "public_html" folder. some use "html," some use "www," some just use the domain name.
i wouldn't really suggest using "../" to go up a folder every time, as it does get a bit confusing sometimes. if you have your header, footer, whatever, in an "includes" folder or similar, you can use this to call it from wherever: CODE <?php include($_SERVER['DOCUMENT_ROOT'] . '/includes/header.php'); ?> any file you need to include in a page, just replace header.php with the name of that file. |
|
|
![]() ![]() |