Topic awaiting preservation: php linking to root directory (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: |
posted 02-03-2002 03:12
I have a stylesheet and a footer.inc in /. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 02-03-2002 08:32
1. To include stylesheet file in the "HTML" way, use the following: <LINK REL="stylesheet" TYPE="text/css" HREF="/stylesheet.css"> (This will load stylesheet.css file, located at the document root, in all other documents, located anywhere else inside document root). On the other hand, if you have a file that you want to include via PHP include() function and it's located at document root, you can use the following code: include($DOCUMENT_ROOT . "stylesheet.inc"); |