View Single Post
Old 09-08-2009, 01:28 PM  
nation-x
Confirmed User
 
nation-x's Avatar
 
Industry Role:
Join Date: Mar 2004
Location: Rock Hill, SC
Posts: 5,370
Quote:
Originally Posted by GrouchyAdmin View Post
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);

Last edited by nation-x; 09-08-2009 at 01:32 PM..
nation-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote