Search code examples
phphtmlimagepnghosting

cant see the images on my website


i recently started learning php, and i didnt have much experience with html and css too, so i decided to create a website just to practice. i created a simple one with couple of days and wanted to test it on a free web hosting site. So used 000webhost, i uploaded my files as they appeared on my computer, with the same exact directories. but the problem is my website doesnt open the pictures. it shows the pictures when i open it directly from my computer but doesnt show them when i open it from internet. here is an example of a html code:

<img  src="imgs/header.png" />

and my website slapswithfriends.host22.com


Solution

  • It seems that your pictures were corrupted during the upload. Try to upload them again. Maybe use a different upload method. i don't know about 000webhost but usually these hosts provide some sort of ftp access got upload.