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:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 7:00 AM To: [EMAIL PROTECTED] 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php