Quote:
Originally Posted by GrouchyAdmin
Do not use getimagesize() as a boolean for validation - that is VERY unsafe.
|
Please provide an example to prove your assertion... how exactly is this unsafe?
This is how I would use it.
Code:
$file_url = "http://www.site.com/images/{$id}/misc6.jpg";
$file_exists = is_array($file_url);