note 51888 added to function.filesize

From: Date: Thu, 14 Apr 2005 03:18:44 +0000
Subject: note 51888 added to function.filesize
Groups: php.notes 
Request: Send a blank email to php-notes+get-87982@lists.php.net to get a copy of this message
For those that want to find out the size of an image generated by PHP that isn't going to be written to a file and have found that filesize's url wrapper's don't quite work, try this: $url = "url/to/image/script.php"; $image = file_get_contents($url, 'rb'); $size = strlen($image); ---- Manual Page -- http://www.php.net/manual/en/function.filesize.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+51888 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51888&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51888&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51888&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51888&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51888&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+51888&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#87982) next »