chicago Posted March 27, 2011 Share Posted March 27, 2011 Hi, I am using the include function to link my header and menu up to my files. My folder structure is: WWW Folder -head.html -menu.html -homepage.php Images Folder Blog Folder -index.php The head.html and menu.html have links to images kept within the images folder. homepage.php and index.php both have include functions to include the menu and header thus including the images. homepage.php works fine the images show up however blog.php links to the head and menu but does not show up the images. my include function for index.php is: <?php include ("..\menu.html"); ?> I have attached a print screen of what the index.php looks like, its obvious that its picking up the head and menu as its showing the image names but not showing the images. Can anybody help it's really confusing me? Thanks [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
chicago Posted March 27, 2011 Author Share Posted March 27, 2011 Anyone? Please I really don't understand why its doing it. Quote Link to comment Share on other sites More sharing options...
chris.smith Posted March 27, 2011 Share Posted March 27, 2011 Hi, I am using the include function to link my header and menu up to my files. My folder structure is: WWW Folder -head.html -menu.html -homepage.php Images Folder Blog Folder -index.php The head.html and menu.html have links to images kept within the images folder. homepage.php and index.php both have include functions to include the menu and header thus including the images. homepage.php works fine the images show up however blog.php links to the head and menu but does not show up the images. my include function for index.php is: <?php include ("..\menu.html"); ?> I have attached a print screen of what the index.php looks like, its obvious that its picking up the head and menu as its showing the image names but not showing the images. Can anybody help it's really confusing me? Thanks Make a menu2.html file that adds "..\" in front of the image paths and include that one in index.php. Quote Link to comment Share on other sites More sharing options...
chicago Posted March 27, 2011 Author Share Posted March 27, 2011 Fantastic thank you that worked!!! 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.