By the same token, it's easy enough to setup Limit and AddHandler directives
to prevent these included files from being displayed in clear text. Or
better still, store them out of the DocumentRoot altogether.

php_value include_path /path/to/some/safe/dir:.

----- Original Message -----
From: "bananachunks" <[EMAIL PROTECTED]>
To: "CF-Linux" <[EMAIL PROTECTED]>
Sent: Monday, February 19, 2001 11:08 AM
Subject: RE: cfinclude w/ext other than .cfm


> The thought of doing something like that just scares me anyway - if for
some
> reason someone knows to hit dsp_searchsub.inc, it will normally display
that
> templates text to them...  Therefore, any 'included' files, for me,
anyway,
> end with '.cfm'.  Same thing for PHP - some of these apps I download
> (popular apps) and they include 'config.inc' or whatnot - you know that if
> you ever see someone running that app, you can easily view their include
> file, full source - once again, I always include '.php' files in that
> instance...
>
> Just my .02
> geo
>
> -----Original Message-----
> From: Jim Priest [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, February 18, 2001 7:47 PM
> To: CF-Linux
> Subject: cfinclude w/ext other than .cfm
>
> On my Windows 2000 server I can do something like:
>
> <cfinclude template="dsp_searchsub.inc">
>
> And it works fine... This doesn't seem to work on my Linux box (both
> are running CF4.5)  The cfinclude on Linux will only work if the file
> is named .cfm.
>
> Any ideas???
>
> Thanks
> Jim
>
>
> --------------------------------------------------------------------------
--
> --
> Archives: http://www.mail-archive.com/cf-linux%40houseoffusion.com/
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_linux
or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-linux%40houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_linux or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to