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!
I am making a site where a user can upload and display images. This is straightforward enough in PHP. In fact, this works very well in firefox. Problem is with Chrome. The image appears while the image display page is loading, but as soon as loading is done, the image error icon appears. Has anyone else experienced this with Chrome?
Ideas to try and fix this? Again, it works well in firefox. The display image code is below.
I know this doesn't answer your question, but the filesystem is much better suited for storing images. As to your question though, it sounds like there's some sort of data at the end that's (not?) getting out, corrupting the image.
Jonah Bron wrote:I know this doesn't answer your question, but the filesystem is much better suited for storing images. As to your question though, it sounds like there's some sort of data at the end that's (not?) getting out, corrupting the image.
That's possible. But I think you're right about the filesystem being better for storing images, so I'll go that route. I've just always liked having them in a database so I don't have to deal with permissions