JAY31UK
03-31-2007, 01:29 AM
Hi, Is there a way or making an error code of some sort that's raised when an image isn't
there? Rather than display a boxed "X" or a broken picture.
there? Rather than display a boxed "X" or a broken picture.
|
||||
error code for imageJAY31UK 03-31-2007, 01:29 AM Hi, Is there a way or making an error code of some sort that's raised when an image isn't there? Rather than display a boxed "X" or a broken picture. Nightfire 03-31-2007, 01:47 AM function checkimage($img){ if(!file_exists($img)){ $img = 'error.jpg'; } return $img; } echo '<img src="'.checkimage('test.jpg').'">'; |
| |||
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum