Thanks to all for your responses. I'm going to try Mack's suggestion first and see how it integrates into my app.
Our old motto: "Laborare Debit" (It should work!?) Dave Long NorthGoods Merchant Services http://www.northgoods.com -----Original Message----- From: Mack [mailto:[email protected]] Sent: Wednesday, December 15, 2010 10:29 AM To: cf-talk Subject: Re: Counting photos on a remote server > Does anybody have a suggestion? (Please keep it G rated.) You can use HEAD requests to verify that the images exists and cache the results of the tests locally, something like: cfloop condition="remoteFile exists" cfhttp method="head" url="remoteFile" cfif (cfhttp.statusCode eq 404) // file does not exist, break the loop cfbreak cfelse // file exist, try next one remoteFile = next remoteFile /cfif /cfloop application.lastFileThatExists = remoteFile -- Mack ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340089 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

