note 76131 added to function.getimagesize

From: Date: Mon, 02 Jul 2007 04:33:46 +0000
Subject: note 76131 added to function.getimagesize
Groups: php.notes 
Request: Send a blank email to php-notes+get-128149@lists.php.net to get a copy of this message
In reply to the below suggestion: <?php print("<!--"); $is = getimagesize($pic); print("-->"); ?> This is nasty as the client still will receive the warning, just commented out in the HTML, you can just prefix "getimagesize" with an "@" to suppress any errors or warnings. Eg: <?PHP $is = @getimagesize($pic); ?> ---- Server IP: 203.202.10.60 Probable Submitter: 220.236.83.79 ---- Manual Page -- http://www.php.net/manual/en/function.getimagesize.php Edit -- https://master.php.net/note/edit/76131 Del: integrated -- https://master.php.net/note/delete/76131/integrated Del: useless -- https://master.php.net/note/delete/76131/useless Del: bad code -- https://master.php.net/note/delete/76131/bad+code Del: spam -- https://master.php.net/note/delete/76131/spam Del: non-english -- https://master.php.net/note/delete/76131/non-english Del: in docs -- https://master.php.net/note/delete/76131/in+docs Del: other reasons-- https://master.php.net/note/delete/76131 Reject -- https://master.php.net/note/reject/76131 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#128149) next »