Try this to deal with your possible missing images. <img src="theimage.jpg" onerror="this.src='http://www.mydomain.com/missing_image.jpg' ;">
Wil Genovese One man with courage makes a majority. -Andrew Jackson A fine is a tax for doing wrong. A tax is a fine for doing well. On Jun 6, 2008, at 5:50 PM, Sean Kozey wrote: > > > * fileexists(): we're using CF's fileexists() function in several > places in the application: to detect if an artifact image exists, > and if not, to either display a placeholder image, and/or generate > one on the fly (for each artifact in the database there can be up to > five different images of various sizes: the application auto- > generates some of the image versions, with the client only uploading > the primary artifact when they add new artifacts to the database). > Even though we've created separate directories for various image > types, this still means that CF is having to run the fileexists > function on folders that have thousands of artiface image files in > them. I'm wondering if this could be causing some of our memory > problems? Does the fileexists() function basically do recursion on > the directory that it scans, and could this be causing server issues? > > Any ideas/suggestions? > > Thanks in advance, > > Sean ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307066 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4