meomike2000 Posted January 30, 2009 Share Posted January 30, 2009 i am trying to add an image to my webpage. the image tag is outside the <?php ?> tags, and the image is a .jpg. i know that the src is correct but image will not display. the image is in the same folder that the page it is to be on. all that displays is the alt. text. here is the code that i used. <img src="image.jpg" height="100" width="100" alt="image" />. but only the alt text displays......... never had this problem before but i have never added an image to a page with a .php extension. thanks mike.... Link to comment https://forums.phpfreaks.com/topic/143078-help-with-image-please/ Share on other sites More sharing options...
phparray Posted January 30, 2009 Share Posted January 30, 2009 If you are 100% certain the path is correct it could be a corrupt image file. I've seen problem when IE could not display an image that FireFox could and optimizing the image with photoshop fixed the problem. But again triple check to make sure the file name and path is all correct. Then go to using and image application like photoshop to optimize the image. Link to comment https://forums.phpfreaks.com/topic/143078-help-with-image-please/#findComment-750371 Share on other sites More sharing options...
meomike2000 Posted January 30, 2009 Author Share Posted January 30, 2009 i use ubuntu and firefox. like i said the image file is in the same folder as the page. and i have tryed multiple images....... no image no matter what. never had this problem before..... Link to comment https://forums.phpfreaks.com/topic/143078-help-with-image-please/#findComment-750373 Share on other sites More sharing options...
meomike2000 Posted January 30, 2009 Author Share Posted January 30, 2009 solved, the problem was with permissions...... what ya know.... Link to comment https://forums.phpfreaks.com/topic/143078-help-with-image-please/#findComment-750377 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.