Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001122

[PHP] relative path vs. INCLUDE() !!!!! From: Arcadius A. (ahouans <email protected>)
Date: 12/24/01

Hello !
I've just made a nice navavigation bar for my website ....
The nav. bar is a php file (Templates/inc_nav.php)containing links to other
pages of my site. the links has been made relatively to the file
"inc_nav.php";
Now that I've included the "inc_nav.php" in other pages , my links no longer
work ... it seems that PHP just copy the content of the nav bar into other
pages so , links are now relavite to the current page and this of course
doean't work !!! :-(((
Is there any workaround or any othe way to include a nav bar in PHP without
breaking the links ?
I hope you understand what I mean ...

Thanks

Arcad.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>