Re: [PHP] Trouble with recocnizing jpeg files. Some work, some do not

2002-05-19 Thread andy
I thought this is a secure way to find out if the file is a jpeg or not. So you are suggesting to passit to the unix command file? How does that work. Maybe you can make a small example or give a small hint on what to look for on google. Sound interesting! I tryed to to perform a createfromjpeg c

[PHP] Trouble with recocnizing jpeg files. Some work, some do not

2002-05-19 Thread andy
Hi there, I do have trouble with finding out if a file is a jpeg or not. This is the command I am using: $_FILES[picture_location][type] works fine exept in one case: With Photoshop 6.0 I do open the jpeg (which workes fine) an save as jpeg as another file name. Then upload the new file. This