
02-08-2005, 11:00 AM
|
|
|
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by triste
filesize the $attachpath, but it wouldn't work if your using the database for saving the attachments.
or this,
ob_start();
imagejpeg($im, "", 95);
header('Content-Length: ' . ob_get_length());
ob_end_flush();
i tried finding a function to find the size of an image resource, but didn't find one.
|
Use sizeof() to get a string length.
http://us4.php.net/manual/en/function.sizeof.php
|