Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: error code for image
03-31-2007, 01:29 AM #1
- Join Date
- Mar 2007
- Thanked 0 Times in 0 Posts
error code for image
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.
03-31-2007, 01:47 AM #2PHP Code:
$img = 'error.jpg';
echo '<img src="'.checkimage('test.jpg').'">';