directories help. |
directories help. |
Apr 3 2009, 02:52 PM
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? |
|
|
|
![]() |
Apr 4 2009, 01:38 PM
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. |
|
|
|
miszxjojo directories help. Apr 3 2009, 02:52 PM
manny-the-dino Moved to Webmasters' Corner Apr 3 2009, 03:03 PM
theerinkal put the [DOCUMENT ROOT] php include into those pag... Apr 3 2009, 04:13 PM
schizo There was just another topic posted about this sam... Apr 3 2009, 04:20 PM
miszxjojo ^ that was was closed.
& i found a way to mak... Apr 3 2009, 06:33 PM
schizo But you can still read the answers the people gave... Apr 3 2009, 06:39 PM
Mikeplyts Well like I mentioned in the other topic, try usin... Apr 3 2009, 06:57 PM
jcp If you have another folder you need to add ".... Apr 3 2009, 07:51 PM
miszxjojo idk why but none of these work :/ Apr 3 2009, 08:41 PM
jcp Could you give us a url or code? Apr 3 2009, 08:43 PM
Mikeplyts QUOTECould you give us a url or code? Apr 3 2009, 10:09 PM
miszxjojo idk why but none of these work :/ Apr 3 2009, 09:59 PM
Fawaz here is a little example I make for you Apr 4 2009, 08:52 AM
miszxjojo my host gave me like a ton of folders in my root ... Apr 4 2009, 12:31 PM
jcp Wrong! Ignore all other folders except for the... Apr 4 2009, 12:49 PM
miszxjojo ^ out of all the ones i tried, thats the closest o... Apr 4 2009, 02:58 PM
fixtatik as i said, if you don't use an "includes... Apr 4 2009, 03:06 PM
miszxjojo i tried that :/
but actually i took out the /inclu... Apr 4 2009, 05:08 PM
manny-the-dino Topic Closed & Moved Apr 4 2009, 08:10 PM![]() ![]() |