Mike, Another possible issue to consider, is the production server Windows or Linux?
A Linux machine will be case sensitive to file and folder names, and won't allow spaces either. Another simple test you might (and probably should) use: fileexists(string path). The 'file' attribute of the cfcontent tag won't do you diddly if it can't find the file you're looking for (you may have thought of this already, but it's the simple stupid stuff that always catches me with my pants down...) Pathing is one of those things that can, and will, catch you off guard;) Cutter Mike Kear wrote: >I tried Matt's method of using CFContent to serve the files to the user, and >worked just like a charm - on my dev machine. I was able to not only do >what I needed, and keep good stats and log of activity, but do some other >cool stuff too like have the pages fed from a database instead of a static >page, thereby allowing much easier updating of content etc. Good .. > >EXCEPT ..... > >It didnt work on my production machine. A shared host. At first I >figured we had CFContent disabled, but I"m assured that CFContent is NOT >disabled for the site in question. Now i have to go back to the code, to >look for what I might have got wrong somewhere along the line. > >Are there any 'gotchas' with CFCONTENT in a shared hosting environment i >ought to look for? Failing that, I think since the app worked beautifully >first time on my dev machine, the only possibility is that I forgot to >upload one of the files or something REALLY dumb like that. Any other >ideas? > > >Cheers >Mike Kear >Windsor, NSW, Australia >Certified Advanced ColdFusion Developer >AFP Webworks >http://afpwebworks.com >ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month > >On Mon, 2 Jan 2006 05:42:50 -0800 >Matt Robertson <[EMAIL PROTECTED]> wrote: > > >>Use cfcontent to push the files to them. Then you can >>work whatever >>tracking code you want into the picture. >> >>http://mysecretbase.com/How_To_Display_Protected_Files.cfm >> >>-- >>--mattRobertson-- >>Janitor, MSB Web Systems >>mysecretbase.com >> >> >> > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:228256 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

