| Webmaster Forum Rules | Posting Guide | Contact Us | Testimonials | Contributing Geek Program | Advertise on Geek/Talk |
|
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Join Date: Feb 2001
Location: Planet Zeekois
Posts: 1,289
|
Is there some way to change what happens when there is a dead image? Is it possible to make it so a certian image shows up if it's a dead image?
------------------ http://www.world-of-nintendo.com/ http://www.nintendocc.com/ http://www.world-of-video-games.com/ http://www.nintendo-library.com/ |
|
|
|
|
|
#2 |
|
Registered User
Join Date: Mar 2000
Location: Milwaukee WI
Posts: 338
|
If you have php access this isn't too hard.
It could go something like this ============================================= $handle=opendir($img_dir); if ($handle) { if (chdir ($img_dir)) { if (file_exists ($picname)) { $size = GetImageSize ($picname); ** else { print ("<BR><H3>ERROR</H3>The Picture you requested $picname was not found!<BR>"); print ("Please <a href=\"$HTTP_REFERER\">click here</A> to return where you came from."); ** ** else { print("unable to change directories"); ** ** else { print("Handle did not work"); ** closedir($handle); chdir(".."); ============================================= Where I have the error message you would put in the address of a "default" picture. HTH |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ACE Image Hosting Script | Czar | Barter/Trade, Buy, & Sell | 0 | 11-02-2006 08:54 AM |
| Image button w/ Submit value | DJ_B | Web Design and Webmaster Issues | 3 | 10-31-2000 06:35 AM |
| ADMIN: VIP geek/chat transcripts for 5/20/00. READ ME! | Steve_S | Archives of old posts from Let's Barter/Trade, Buy, & Sell | 0 | 05-21-2000 12:12 PM |
| ADMIN: VIP geek/chat transcripts for 5/20/00. READ ME! | Steve_S | Marketing Your Website Online | 0 | 05-21-2000 12:11 PM |
| Image Networks Question | Slipknot - KoRn | Making Money with CPC and/or CPM Programs | 1 | 03-15-2000 05:45 AM |
![]()