Firefox doesn't support a long path
Firefox does not support a long path. But in IE code is run smoothly.
<img src="C:/Program Files/EasyPHP-5.3.2i/www/Place4Info/Images/Skin_Tone/light.JPG" width= "50" height="30"/>
This is the path. If I use a short path then it work in firefox开发者_如何学C but if I use above path then it didn't show an image.
But it shows an image in IE.
Please give me a suggestion.
Try to use relative addressing rather than absolute addressing.
Asuming you have no other choice, use this file:///
in front of the addresses.
<img src="file:///C:/Program Files/EasyPHP-5.3.2i/www/Place4Info/Images/Skin_Tone/light.JPG" width= "50" height="30"/>
Full paths (that's what you are calling a long path) should include a protocol: add file:///
to the beginning of the path
Referencing an image from a local file
You need to upload your picture from a publically available source (probably the web!) It looks like you have uploaded it, but you probably should be referencing it relatively, for example something like:
<img src="Images/Skin_Tone/light.JPG" width= "50" height="30"/>
(Modify path as necessary)
Getting mixed up with client/server side
PHP has nothing to do with firefox or internet explorer or any other browser. It is server side, and you are referncing a client side problem.
精彩评论