RE: Reading .TXT files as CF files

2007-11-06 Thread Andy Matthews
I'm curious...why do you want CF to read txt files?


andy


-Original Message-
From: Brian McCairn [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 05, 2007 5:34 PM
To: CF-Talk
Subject: Re: Reading .TXT files as CF files

Tried this with CF8, stopped and started the ColdFusion 8 Application
service but I'm getting:

Server Error 



Either the Macromedia application server(s) are unreachable or none of them
has a mapping to process this request. 



~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292737
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Reading .TXT files as CF files

2007-11-06 Thread Brian McCairn
for me it was just a marketing idea thing, for instance pages on a fan site for 
Liverpool Football club could have the file extension .lfc, or a Manchester 
United site could have the file extension .rubbish 

~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292743
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Reading .TXT files as CF files

2007-11-06 Thread Andy Matthews
That's a fun idea. liek I said it was just curiousity...nothing more. 

-Original Message-
From: Brian McCairn [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 06, 2007 8:37 AM
To: CF-Talk
Subject: Re: Reading .TXT files as CF files

for me it was just a marketing idea thing, for instance pages on a fan site
for Liverpool Football club could have the file extension .lfc, or a
Manchester United site could have the file extension .rubbish 



~|
Check out the new features and enhancements in the
latest product release - download the What's New PDF now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292746
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Reading .TXT files as CF files

2007-11-06 Thread Jochem van Dieten
Brian McCairn wrote:
 Tried this with CF8, stopped and started the ColdFusion 8 Application service 
 but I'm getting:
 
 Server Error 

What is in your *-out.log? Does it work if you access the build in 
webserver?

Jochem

~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292749
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Reading .TXT files as CF files

2007-11-06 Thread Claude Schneegans
 I'm curious...why do you want CF to read txt files?

Check robots that read robots.txt or not.
It would be much easier than collecting, reading and parsing IIS logs.

Unless someone has a better idea?

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292758
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Reading .TXT files as CF files

2007-11-06 Thread gary gilbert
Hi Brian,

You can have CF process any file ending you want you just have to register
it in IIS (if you are using IIS) so that IIS passes the files ending with
the type you specify off to the CF server.  On my server its
C:\ColdFusion8\runtime\lib\wsconfig\1\jrun.dll

Its in IIS under websites, properties, then I think its root folder,
configuration, then on the first tab.  I'm on a German machine here so can't
recall at the moment what it is in English.

If you scroll down on this list you will see that cfc, cfm, cfml, cfr, and
cfswf are all registered to the same jrun.dll, you could just add your
..rubbish, or . lfc extensions to the list and bobs your uncle



-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292756
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Reading .TXT files as CF files

2007-11-06 Thread Claude Schneegans
 In web.xml map *.txt to the CfmServlet.

Ah ok, thanks, I will try.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292759
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Reading .TXT files as CF files

2007-11-06 Thread Claude Schneegans
 I'm curious...why do you want CF to read txt files?

Check robots that read robots.txt or not.
It would be much easier than collecting, reading and parsing IIS logs.

Unless someone has a better idea?

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292767
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Reading .TXT files as CF files

2007-11-06 Thread Cutter (CFRelated)
Back when I was doing Corporate Support with a regional ISP (4.5 days) 
we used to do this with .inc files (which were included via cfinclude) 
within a home rolled CMS. We also did it with an Article manager for an 
online magazine using .art file extensions. We were on IIS at the time, 
so it was a matter of telling IIS that the CF server was to parse files 
with those extensions. I imagine it would be the same on Apache in the 
config.

 IfModule mod_jrun20.c
 JRunConfig Verbose true
 #JRunConfig Apialloc false
 JRunConfig Ignoresuffixmap false
 JRunConfig Serverstore 
C:/JRun4/lib/wsconfig/control/jrunserver.store
 JRunConfig Bootstrap 127.0.0.1:51002
 AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc .cfr .cfswf 
..inc .art
 /IfModule

Not sure I would try it with a standard file type like .txt or .ini 
though. That could create some confusion...

Steve Cutter Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_
http://blog.cutterscrossing.com

Andy Matthews wrote:
 That's a fun idea. liek I said it was just curiousity...nothing more. 
 
 -Original Message-
 From: Brian McCairn [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, November 06, 2007 8:37 AM
 To: CF-Talk
 Subject: Re: Reading .TXT files as CF files
 
 for me it was just a marketing idea thing, for instance pages on a fan site
 for Liverpool Football club could have the file extension .lfc, or a
 Manchester United site could have the file extension .rubbish 
 
 
 
 

~|
Check out the new features and enhancements in the
latest product release - download the What's New PDF now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292760
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Reading .TXT files as CF files

2007-11-06 Thread Claude Schneegans
 Not sure I would try it with a standard file type like .txt or .ini
though. That could create some confusion...

The only confusion could be when a .txt file contains CF tags that 
should not be executed,
very unlikely.
Otherwise, the txt file will be just passed to the client transparently.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292788
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Reading .TXT files as CF files

2007-11-06 Thread Jochem van Dieten
Cutter (CFRelated) wrote:
 Back when I was doing Corporate Support with a regional ISP (4.5 days) 
 we used to do this with .inc files (which were included via cfinclude) 
 within a home rolled CMS. We also did it with an Article manager for an 
 online magazine using .art file extensions. We were on IIS at the time, 
 so it was a matter of telling IIS that the CF server was to parse files 
 with those extensions.

Nowadays it is a 2 step process. Not only do you have to tell IIS to 
send it to JRun, you also have to tell JRun to send it to the CfmServlet 
(or the FileServlet, or ...). That is why you need the aditional mapping 
in web.xml.


 Not sure I would try it with a standard file type like .txt or .ini 
 though. That could create some confusion...

I typically have a dozen or so extra mappings: .log, .svn, .vss, .ini, 
..properties, /CFIDE/adminapi etc. But I have them all mapped to the 
CFForbiddenServlet and don't really care about confusion.

Jochem

~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292793
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Reading .TXT files as CF files

2007-11-06 Thread Claude Schneegans
 Nowadays it is a 2 step process. Not only do you have to tell IIS to
send it to JRun, you also have to tell JRun to send it to the CfmServlet
(or the FileServlet, or ...). That is why you need the aditional mapping
in web.xml.

IMHO, this is what is going wrong with CF since CFMX.
I mean, the main advantage of CF over ASP, JSP or even PHP was SIMPLICITY.
The more we go, the more it is getting complicated.
There are too many options that one has to patch in obscure and 
undocumented xml files.
Why aren't these options settable from the Administrator?

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292798
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Reading .TXT files as CF files

2007-11-05 Thread Jochem van Dieten
Claude Schneegans wrote:
 I'm trying to get IIS (Windows XP) to read .txt files through CF, just 
 like .cfm or .cfml.
 So I defined the same configuration for .txt extensions  as for .cfm.
 It works under CF 5, but with CF 7 all I get is an empty page.
 Is there any other setting necessary in CF itself in order to get it 
 working?

In web.xml map *.txt to the CfmServlet.

Jochem

~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292708
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Reading .TXT files as CF files

2007-11-05 Thread Brian McCairn
Tried this with CF8, stopped and started the ColdFusion 8 Application service 
but I'm getting:

Server Error 


Either the Macromedia application server(s) are unreachable or none of them has 
a mapping to process this request. 

~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292714
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4