Current location: Hot Scripts Forums » Programming Languages » PHP » Image display problem


Image display problem

Reply
  #1 (permalink)  
Old 05-02-05, 05:49 PM
henryw henryw is offline
Newbie Coder
 
Join Date: May 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Image display problem

I'm having a bit of a weird problem. I'm displaying images from a mysql table, but for some reason, the images sometimes display and other times don't. On the one page, there may be up to 12 images loading, based on the user's account, however, 2 or 3 of these images may not display. On refresh, it could be a completely different 2 or 3 images that don't display. Sometimes it's only 1 image that doesn't display.

I'm an experienced PHP programmer, so I can't probably assure you that it's nothing in the code. I'm looking for something in the PHP/MySQL setup most likely.

Any ideas?

Henry
Reply With Quote
  #2 (permalink)  
Old 05-02-05, 06:25 PM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
how are you outputing picures? through a image.php?id=12 method?
are you using a content-type header on your images when you display them?
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]
Reply With Quote
  #3 (permalink)  
Old 05-02-05, 06:44 PM
henryw henryw is offline
Newbie Coder
 
Join Date: May 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Fixed

Fixed the problem. I was thrown off because the script seemed to be working fine on another page to display the image output.

I'm using ImageMagick to resize images on the fly, depending on the w= variable passed in the URL. To get that to work however, I have to make a temporary file on the server. That filename was fixed everytime, so I guess at the speed at which PHP was running, there must have been a problem reusing the filename as fast as I was requiring. I've now added a random string to the end of the temporary filename and it seems to be working fine now.

Thanks for your time.

Henry
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Image display problem osmanmumtaz PHP 0 04-14-05 12:17 AM
Help! Image Display "IF" dayzeday PHP 1 04-12-05 03:52 AM
how to display the image from the database??? jaishalg PHP 8 01-26-05 05:47 PM
Image manipulation color problem in ASP.NET munesh ASP.NET 0 01-07-05 05:35 AM
Image display based on URL rjwebgraphix PHP 5 09-09-04 08:02 AM


All times are GMT -5. The time now is 06:43 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.