PDA

View Full Version : تابع getimagesize



emperatorphp
یک شنبه 16 فروردین 1394, 17:01 عصر
بسم الله الرحمن الرحیم
سلام تابع زیر چه مقداری رو داخل متغر چک ذخیره میکنه؟

$check = getimagesize($_FILES["fileToUpload"]["tmp_name"]);
ممنون میشم راهنمایی کنید.


نکته:
fileToUpload همون دکمه اضافه کردن فایل هست.

reza_alie
یک شنبه 16 فروردین 1394, 17:44 عصر
سلام
The getimagesize() function will determine the size of any GIF, JPG, PNG, SWF, SWC, PSD, TIFF, BMP, IFF, JP2, JPX, JB2, JPC, XBM, or WBMP image file and return the dimensions along with the file type and a height/width text string to be used inside a normal HTML <IMG> tag.

----
یا به عبارتی اطلاعات و سایز تصویری را که آپلود کردی رو به صورت آرایه بر میگردونه


print_r($check);

تشکر = رضایت