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 Quote Link to comment 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' Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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) Quote Link to comment Share on other sites More sharing options...
shirvo Posted February 19, 2007 Author Share Posted February 19, 2007 Thanks works fine now Quote Link to comment 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. Quote Link to comment 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?? Quote Link to comment 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.