redho home | products | services
Web Design Forums

Web Design Forums  


Web Hosting, Web Design, Software and Web Development Forums  
 FAQFAQ   MemberlistArchive  Log inLog in   RegisterRegister 
         

problems with img



 
Post new topic   Reply to topic    Web Design Forums -> HTML forum
View previous topic :: View next topic  
Author Message
Mupolan



Joined: 30 May 2006
Posts: 101
I don't know if that is a http server or html stuff, but locally, if I have something like <img src=/my_image.png> , that doesn't work. But that works on the server my site is stored on.
Does my apache do not understand absolute path ?
  Reply with quote


Poolkop



Joined: 01 Jun 2006
Posts: 123
Where should the /file.ext be? in the same directory as html page?
  Reply with quote
Mupolan



Joined: 30 May 2006
Posts: 101
No, on the site root
Maybe the use of alias make the absolute path to point to the wrong location ?
  Reply with quote
AmeliaR



Joined: 31 May 2006
Posts: 142
So you have localhost/directory/file.html and the image is in /directory
  Reply with quote
Mupolan



Joined: 30 May 2006
Posts: 101
(my local site is a alias in httpd.conf)
  Reply with quote
Poolkop



Joined: 01 Jun 2006
Posts: 123
Btw. use quotes <img src="/my_image.png">
  Reply with quote
AmeliaR



Joined: 31 May 2006
Posts: 142
And <img.... />
  Reply with quote
Mupolan



Joined: 30 May 2006
Posts: 101
AmeliaR , I have http://localhost/alias_name/page.html with alias pointing to "/data/site/" and my image is in /data/site/
  Reply with quote
Poolkop



Joined: 01 Jun 2006
Posts: 123
Don't know what are you trying to say, but /> belongs to xml(so xhtml too). in html the slash should not be there.
*-should +must
  Reply with quote
AmeliaR



Joined: 31 May 2006
Posts: 142
Poolkop: can you browse to localhost/data/site/
  Reply with quote
Poolkop



Joined: 01 Jun 2006
Posts: 123
Sorry, i don't remember know how to make uri from a server root :/
  Reply with quote


Mupolan



Joined: 30 May 2006
Posts: 101
No, I can't
  Reply with quote
Poolkop



Joined: 01 Jun 2006
Posts: 123
Should be the same as you typed it - "/my_image.png" for image lying in server root.
  Reply with quote
Mupolan



Joined: 30 May 2006
Posts: 101
Well, it seems it search the image on the server root, like http://localhost
Not on the site root
  Reply with quote
Poolkop



Joined: 01 Jun 2006
Posts: 123
If it's in the same dir as site, then without slash, if it's one (or more) levels higher, use ../ to go one dir up... nothing more could i say, sorry.
  Reply with quote
Mupolan



Joined: 30 May 2006
Posts: 101
Ok. np. thanks anyway
  Reply with quote
Page 1 of 1
Post new topic   Reply to topic    Web Design Forums -> HTML forum


Dubai Forums - Expat Help | Vegan Chat | Java Programming | Free 3D tutorials and 3d textures | Paris Forum | EU Forum
Free Dubai Classifieds | Free London Classifieds | Jobs in London

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

Powered by phpBB © 2001, 2005 phpBB Group