OZONE Asylum
Forums
Server-Side Scripting - Oh my!
.htaccess - send default .jpg if requested .jpg isn't found?
This page's ID:
27855
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Greets! I have a directory with thousands of .jpg files in it. I'm using an AJAX application to grab XML data from the server to display the records. What I need is an option to display a default .jpg if the request image isn't found on the server. Normally, I would use PHP to just do a check, but the XML can sometimes be sending out a single page with more than 100 records on it, and I don't want to bog down the server with doing all of the file checks. Does anyone know how to do this in .htaccess? I tried using an errorDocument declaration, but that doesn't seem to work. [url=http://www.justice4pat.com/] [img]http://www.innervation.com/dev/j4p_link.gif[/img] [/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »
Maximum Security
OZONE
DHTML/Javascript
Server-Side Scripting - Oh my!
CSS - DOM - XHTML - XML - XSL - XSLT
Stupid Basic HTML
Visual Therapy
Photoshop
Photoshop Pong, Anyone?
***WARNING*** BIG SIG APPROACHING
Photography
3D Modelling & Rendering
Multimedia/Animation
Print Graphics
Holding Pens
Philosophy and other Silliness
Outpatient Counseling
Site reviews!
Mad Scientists' Laboratory
Getting to know the Grail