ciao,
di un file ricevuto attraverso un form, posso controllare se si tratta di un jpg??
eraclito![]()
ciao,
di un file ricevuto attraverso un form, posso controllare se si tratta di un jpg??
eraclito![]()
L'apprendere molte cose non insegna l'intelligenza
Voglio avere dubbi più chiari
" Returns an array with 4 elements. Index 0 contains the width of the image in pixels. Index 1 contains the height. Index 2 is a flag indicating the type of the image: 1 = GIF, 2 = JPG, 3 = PNG, 4 = SWF, 5 = PSD, 6 = BMP, 7 = TIFF(intel byte order), 8 = TIFF(motorola byte order), 9 = JPC, 10 = JP2, 11 = JPX, 12 = JB2, 13 = SWC, 14 = IFF, 15 = WBMP, 16 = XBM. These values correspond to the IMAGETYPE constants that were added in PHP 4.3.0. Index 3 is a text string with the correct height="yyy" width="xxx" string that can be used directly in an IMG tag."
http://it2.php.net/manual/it/function.getimagesize.php
![]()
think simple think ringo
thxOriginariamente inviato da marketto
" Returns an array with 4 elements. Index 0 contains the width of the image in pixels. Index 1 contains the height. Index 2 is a flag indicating the type of the image: 1 = GIF, 2 = JPG, 3 = PNG, 4 = SWF, 5 = PSD, 6 = BMP, 7 = TIFF(intel byte order), 8 = TIFF(motorola byte order), 9 = JPC, 10 = JP2, 11 = JPX, 12 = JB2, 13 = SWC, 14 = IFF, 15 = WBMP, 16 = XBM. These values correspond to the IMAGETYPE constants that were added in PHP 4.3.0. Index 3 is a text string with the correct height="yyy" width="xxx" string that can be used directly in an IMG tag."
http://it2.php.net/manual/it/function.getimagesize.php
![]()
![]()
L'apprendere molte cose non insegna l'intelligenza
Voglio avere dubbi più chiari