Thanks to all. I get it now... "http://" is NOT the start of an absolute path but a "URL" and that's why it won't work.
The photos occupy about 5 gigs of space and we were going to park them on a different server but, on second look, we've got gobs of space left on the same box as the Web site so we're just going to copy the pix over. That should solve the problem, I hope. Thanks again. Dave > -----Original Message----- > From: Yuliang Ruan [mailto:[email protected]] > Sent: Monday, February 02, 2009 2:24 PM > To: cf-talk > Subject: Re: Using "FileExists" function in a "CFIF" tag > > > > filexists is for checking file existence on the local > filesystem. not for checking out on the web. > > are you hosting the images? if you are, you should be doing > something to effect of: > > <cfset PhotoLocation = "c:\www\htdocs\images\"> > <cfset PhotoLocation = PhotoLocation & ViewField20> > <cfif FileExists('#PhotoLocation#-2.jpeg')>Yes, it's > here.<cfelse>I couldn't find it.</cfif> </td></tr> > > > if you are not hosting the images, then you should be doing > > <cftry> > <cfhttp url="#photoLocation#-2.jpeg"></cfhttp> > > <cfif cfhttp.responsecode contains "404"> > not found > <cfelse> > found > <cfcatch> > </cfcatch> > </cftry> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318834 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

