RE: [PHP] Using includes with page locations
| From: | Jennifer Goodie | Date: | Thu, 27 Mar 2003 00:44:36 +0000 |
| Subject: | RE: [PHP] Using includes with page locations | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-141144@lists.php.net to get a copy of this message | ||
You could just make all of your links relative to the webroot. "/index.php"
instead of "index.php" and "/messages/index.php" and
"messages/index.php" I
don't know why you would want to use PHP to do this for you, it is a pretty
basic HTML concept.
-----Original Message-----
From: Vernon [mailto:vernon@comp-wiz.com]
Sent: Wednesday, March 26, 2003 7:00 AM
To: php-general@lists.php.net
Subject: [PHP] Using includes with page locations
Please forgive the ignorance of this question but I am trying to use an
include for a site navigation menu and am having a hard time figuring out
how to point at the route of the site.
For instance I may have home set as index.php, but if my users are in
messages/index.php that will always bring that back to the same page. I know
in ASP there is a way to set the root directory, how do I do that in PHP.
Thanks