png image not showing on server

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Madiha
Forum Newbie
Posts: 7
Joined: Wed Feb 08, 2012 10:52 am

png image not showing on server

Post by Madiha »

I have made a php page. And have used in it a .png image. When i run it on localhost, it works fine, the image shows. But after i have putted the file on server. jpg image works fine, But png image doesnot show.

I have used the following code for displaying images

<img src="images/Mailbox.png" width="100%" height="100%" alt="">

Any body please
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: png image not showing on server

Post by Celauran »

Localhost is Windows and live host is Linux? Probably a case-sensitivity issue. Mailbox.png != mailbox.png
Madiha
Forum Newbie
Posts: 7
Joined: Wed Feb 08, 2012 10:52 am

Re: png image not showing on server

Post by Madiha »

Thanks.. it helped. . ;)
Post Reply