shirvo Posted February 19, 2007 Share Posted February 19, 2007 l have a folder called message and in that i have the message system i made. Now i want to use a file in another file this is the folders html => message now i want a file called inbox.php in the message folder to include header.php in the folder html. How can i do this Link to comment https://forums.phpfreaks.com/topic/39105-root-directory/ Share on other sites More sharing options...
superuser2 Posted February 19, 2007 Share Posted February 19, 2007 include "../filename_in_parent_directory"; ../ means 'one level up' Link to comment https://forums.phpfreaks.com/topic/39105-root-directory/#findComment-188316 Share on other sites More sharing options...
shirvo Posted February 19, 2007 Author Share Posted February 19, 2007 but if anything it would be one level down Link to comment https://forums.phpfreaks.com/topic/39105-root-directory/#findComment-188317 Share on other sites More sharing options...
superuser2 Posted February 19, 2007 Share Posted February 19, 2007 No, it doesn't. I don't know why UNIX file paths are the way they are, but they are. Just try it, it will work. Link to comment https://forums.phpfreaks.com/topic/39105-root-directory/#findComment-188318 Share on other sites More sharing options...
shirvo Posted February 19, 2007 Author Share Posted February 19, 2007 ok is sort of worked. It doesn't use the css style sheet i have. why would that be Link to comment https://forums.phpfreaks.com/topic/39105-root-directory/#findComment-188319 Share on other sites More sharing options...
superuser2 Posted February 19, 2007 Share Posted February 19, 2007 That would be because your browser is looking for your stylesheet inside the wrong folder. Change all your links and scripts and stylesheet references to absolute paths (http://example.com/index.php instead of index.php) Link to comment https://forums.phpfreaks.com/topic/39105-root-directory/#findComment-188320 Share on other sites More sharing options...
shirvo Posted February 19, 2007 Author Share Posted February 19, 2007 Thanks works fine now Link to comment https://forums.phpfreaks.com/topic/39105-root-directory/#findComment-188329 Share on other sites More sharing options...
superuser2 Posted February 19, 2007 Share Posted February 19, 2007 Glad to help. Use the topic solved button to mark this as solved. Link to comment https://forums.phpfreaks.com/topic/39105-root-directory/#findComment-188332 Share on other sites More sharing options...
shirvo Posted February 19, 2007 Author Share Posted February 19, 2007 ok now i found something else that doesn't work. i habe this code in my header <body style="filter:progid:DXImageTransform.Microsoft.Gradient(endColorstr='#CCCCCC', startColorstr='#666666', gradientType='0');"> so i can have a gradient but now since i changed the style sheet to http://www.ausfamily.com/style.css it doesn't show the background?? Link to comment https://forums.phpfreaks.com/topic/39105-root-directory/#findComment-188337 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.