redho home | products | services

Programming Forums


Community for Java, PHP, Perl C, ASP and Python programmers
Thursday 18 October 2018 20:32

Ask your IT question here

problems with img


Goto page 1, 2  Next
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Programming Forums -> HTML forum
View previous topic :: View next topic  
Author Message
Mupolan
Enthusiastic Coder


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
Enthusiastic Coder


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


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
Enthusiastic Coder


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


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


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


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


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
Enthusiastic Coder


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
Enthusiastic Coder


Joined: 31 May 2006
Posts: 142
Poolkop: can you browse to localhost/data/site/
Reply with quote
 
Page 1 of 2 Goto page 1, 2  Next
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Programming Forums -> HTML forum


Dubai Forums - Expat Help | Vegan Forum | Java Programming | 3d Design Resources | 3d Forum | 3D Jobs | 3D Textures | Paris Forum | Europe Forum
Dubai Classifieds | Dubai Property | Jobs in Dubai | Free London Classifieds | Jobs in London UK

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

© 2018 RedHo