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] Link to comment https://forums.phpfreaks.com/topic/231847-images-not-showing/ 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. Link to comment https://forums.phpfreaks.com/topic/231847-images-not-showing/#findComment-1192898 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. Link to comment https://forums.phpfreaks.com/topic/231847-images-not-showing/#findComment-1192901 Share on other sites More sharing options...
chicago Posted March 27, 2011 Author Share Posted March 27, 2011 Fantastic thank you that worked!!! Link to comment https://forums.phpfreaks.com/topic/231847-images-not-showing/#findComment-1193005 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.