Go Back   Free website templates > Web Template Help > PHP and MySQL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Join now to share free website templates or post on the forum. If you have never been on a forum before read the FAQ. It's quick, easy and free to join!
Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 06-01-2008, 05:05 PM
Jaybirddesigns's Avatar
Senior Member
 
Join Date: Apr 2008
Location: Helendale,ca
Posts: 133
Jaybirddesigns is on a distinguished road
Default

Got the new script workin good. Whats the difference between pjpeg and jpeg?

Thanks alot it's exactly what i was looking for, uploads and replaces perfect.
Reply With Quote
  #12 (permalink)  
Old 06-01-2008, 06:38 PM
ishkey's Avatar
Moderator
 
Join Date: Aug 2007
Location: North GA USA
Posts: 1,776
ishkey will become famous soon enough
Default

An unfortunate behavior of IE6 & IE7 is that it assigns content type image/pjpeg (progressive jpeg) to all jpeg images it uploads. If you want you could implement sniffing of the file info, then You could maintain your own mime-types file and append them to the Apache mime-types in your script (assuming you are reading them into an array or something).

Another option is to simply read the first five characters of the type to see if it is an imageif (substr($_FILES['field_name']['type'], 0, 5) == 'image')) {and use the existing extension moded.

Or just leave as is, 99.9 % of the time it works ok.
TVs and LCD have either progressive scan or interlaced scans, which pertains to software and displays. There are two camps here which gets down to speed of rendering. It made a difference in the old days and now only to serious gammers and high end graphics people.
__________________

Consultant - Programmer - WebMaster
cleandeck - lawn mower undercoating
wilmargraphite - graphite lubricants
Reply With Quote
Reply

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:17 PM.



mouseover mouseover mouseover