Lithium Posted September 1, 2011 Share Posted September 1, 2011 I have a file that loads me up a few random images. It works every odd attempt to reload the page showing the images, failing all even, not showing images, only a broken image sign. Same file on different servers, works flawless. Any idea on what can it be? Quote Link to comment Share on other sites More sharing options...
ShadyCoco Posted September 1, 2011 Share Posted September 1, 2011 Random images? PHP generated ones? Or .jpeg, png, gif etc? Need a little more info please Quote Link to comment Share on other sites More sharing options...
Lithium Posted September 2, 2011 Author Share Posted September 2, 2011 existing .png images... Quote Link to comment Share on other sites More sharing options...
Spudinski Posted September 2, 2011 Share Posted September 2, 2011 Could you please post the script, or the part that actually chooses the image that is going to be displayed? From what I know, you are loading either an array with image locations, or searching a specific directory? There should be a problem with either of those. But, it could be possible your trying to retrieve local files with a HTTP method, which I wouldn't suggest. You can load the images via readfile() and encode in base64 and use as the src property on the image, or you can just use readfile() in a separate script and set the corresponding headers. But I would suggest you give me a look at your script, because I really can't tell what's wrong without it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.