Images not displaying

This is a discussion on "Images not displaying" within the Graphics and 3D section. This forum, and the thread "Images not displaying are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Graphics and 3D

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 23rd, 2006, 11:59
Up'n'Coming Member
Join Date: Jan 2006
Location: East Sussex
Age: 26
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Images not displaying

Hi,

I am having a problem getting images to display in a site, the following works fine,

<img src="images/header.jpg" width="800" height="75" />

But

<img src="/images/header.jpg" width="800" height="75" />

does not (note the / at the start of images).

The problem is that the whole site used to be served on a different server and uses the second example (it all worked fine) now however we have swapped servers and are having the problems. Does anyone have any ideas as to why it's not displaying? I have checked and double checked that the file exists in the images directory.

Thanks
Reply With Quote

  #2 (permalink)  
Old Oct 23rd, 2006, 12:52
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: Images not displaying

I'm guessing you have swapped from a Windows server to a Linux/Unix variant.

That leading '/' has a totally different meaning.

On Windows it just means the current directory.

On Linux/Unix it means the root directory.

You need a block find and replace tool to change all the image links.

Last edited by ukgeoff; Oct 23rd, 2006 at 16:14.
Reply With Quote
  #3 (permalink)  
Old Oct 23rd, 2006, 14:35
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,761
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: Images not displaying

../images/header/
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #4 (permalink)  
Old Oct 23rd, 2006, 16:26
Up'n'Coming Member
Join Date: Jan 2006
Location: East Sussex
Age: 26
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Images not displaying

Already tried what you sugested moojoo but again it came up without the image, both servers are running linux although i dont know which variation, and
the document_root is set properly. Its not too much of an issue, will just have to change all the links but if anyone has any further ideas...
Reply With Quote
Reply

Tags
images not displaying, site root problems

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple rollover images change multiple images joshlindem Web Page Design 4 Apr 18th, 2008 09:11
Images not displaying correctly leighhobson89 Web Page Design 2 Nov 29th, 2007 16:33
Why displaying nothing? begeiste PHP Forum 17 Oct 1st, 2007 19:22
problem with blog displaying images remo PHP Forum 3 Nov 24th, 2006 12:00
Uploading and displaying images. robukni PHP Forum 8 Jan 18th, 2006 12:39


All times are GMT. The time now is 23:02.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43