I couldn't figure out how to make Dreamweaver MX to apply the same
highlighting styles to inc. files, but I probably didn't try hard enough.

Some things to note though:

If you name your files with a # in front of them, people can still execute
them by using the hexadecimal equivalent of #:

http://www.mysite.com/includes/#cftest.cfm

Becomes:

http://www.mysite.com/includes/%23cftest.cfm

A good way to protect your files is to use application.cfm.

Make a directory for includes, called, well, "includes".  Name your files
with whatever scheme you want.  You could use inc_myfile.cfm, but since this
directory would only hold includes, it seems kind of redundant to do that.
Create an application.cfm file in this directory and just redirect to the
home page of the site, or whatever page you want.  This way, there is no
chance of anyone calling your includes manually.  Your application will just
be including files from this directory and not executing the
application.cfm, so it won't screw up any other app settings you might have
in place.

--Andy

> -----Original Message-----
> From: Howie Hamlin [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 10, 2002 6:42 PM
> To: CF-Talk
> Subject: Re: Dreamweaver MX Question
>
>
> But, someone can probably download your include files (if they
> know the name).  A more secure way is to name the files with a "#" at
> the beginning and then browsers will not be able to download
> them, plus you will get back your syntax highlighting.  For example, if
> you have a file called include.inc and you invoke it with
>
> <cfinclude template="include.inc">
>
> Just change the file to #include.cfm and invoke it with
>
> <cfinclude template="##include.cfm">
>
> Regards,
>
> --
> Howie Hamlin - inFusion Project Manager
> On-Line Data Solutions, Inc. - www.CoolFusion.com  - 631-737-4668 x101
> inFusion Mail Server (iMS) - The Award-winning, Intelligent Mail Server
> >>> Find out how iMS Stacks up to the competition:
> http://www.coolfusion.com/imssecomparison.cfm
>
> ----- Original Message -----
> From: "Costas Piliotis" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Friday, May 10, 2002 6:34 PM
> Subject: Dreamweaver MX Question
>
>
> > In my site, I've renamed my include files with a .inc extension.
> >
> > Does anyone know how I get the color coding in DWMX to work
> with .inc files?
> >
> > And before anyone starts flaming me on why I do that, I do this
> because it
> > makes it so an include file cannot be invoked directly from a browser...


______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to