View Full Version : PHP includes


Death
08-19-2004, 02:13 AM
I use PHP includes and a CSS layout for my site... I was just wondering if the file you include using PHP needs to be in the same directory as the file you're adding it to. If that makes sense. Any help is apreciated ^.^

Monkey Bizzle
08-19-2004, 05:21 AM
well, the code to include something is
<? include("whatever.php") ?>
so if your included file was in a directory called PHP on your server then i guess you would put
<? include("/PHP/whatever.php") ?>

get it? you link just like you would any other thing that is in a different directory...

pb&j
08-19-2004, 06:16 AM
the file needs to be on the same server, but does not need to be in the same directory.