[PHP] Using includes with page locations

2003-03-26 Thread Vernon
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



RE: [PHP] Using includes with page locations

2003-03-26 Thread Jennifer Goodie
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



RE: [PHP] Using includes with page locations

2003-03-26 Thread Jennifer Goodie
oops, it should read: /messages/index.php instead of (not and)
messages/index.php

That make make what I said really confusing

-Original Message-
From: Jennifer Goodie [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 4:45 PM
To: Vernon; [EMAIL PROTECTED]
Subject: RE: [PHP] Using includes with page locations


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.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php