nafetski Posted October 25, 2007 Share Posted October 25, 2007 Hey everyone, I appologize if this has been answered previously...I've searched and havn't had much luck. I've coded a site that uses includes for many of the elements of the page. The header, navigation menu, and footer are all includes...and all the elements inside them I've pointed them at the root directory for navigation purposes. The reason for this is I couldn't think of a way that relative links would work...since many of the different pages that are on this site are deep in the file tree. However, I come to find out that as the site is deployed...none of the links to the doc root are valid since the naming convention they're using on the server is different. Is there a way in PHP to set a variable, or some sort of function that writes a relative path for you when it's called? Any help would be greatly appreciated! -Nafetski Quote Link to comment https://forums.phpfreaks.com/topic/74729-using-a-header-and-relative-paths/ Share on other sites More sharing options...
nafetski Posted October 25, 2007 Author Share Posted October 25, 2007 Bumpalicious Quote Link to comment https://forums.phpfreaks.com/topic/74729-using-a-header-and-relative-paths/#findComment-377889 Share on other sites More sharing options...
premiso Posted October 25, 2007 Share Posted October 25, 2007 I believe it is a ini_set feature for the include_path That may help, not sure. (Might also be able to do it via .htaccess) Quote Link to comment https://forums.phpfreaks.com/topic/74729-using-a-header-and-relative-paths/#findComment-377905 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.