Jump to content

Images not showing


chicago

Recommended Posts

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.