of thinking about what the FileExists() function expects.
-Matt
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> On Behalf Of Mark A. Kruger - CFG
> Sent: Thursday, August 19, 2004 11:12 AM
> To: CF-Talk
> Subject: RE: BlueDragon cfinclude issues
>
> Matt,
>
> Yes but... fileexists requires the fule path (i.e. e:\wwwroot\index.cfm -
> not just "index.cfm") so I would definitley
> expect the cfif to return FALSE - or am I missing something?
>
> -mark
> -----Original Message-----
> From: Matt Liotta [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 19, 2004 10:05 AM
> To: CF-Talk
> Subject: RE: BlueDragon cfinclude issues
>
>
> In testing locally I found that FileExists() seems to be the problem.
> Basically, nothing inside the cfif executes. Simply including a template
> based on a variable without checking to see if it exists works.
>
> In fact, the following template shows this strange behavior.
>
> <cfset foo = "index.cfm">
> <cfif FileExists(foo)>
> <cfabort>
> </cfif>
> <cfinclude template="#foo#">
>
> When called index.cfm will be included.
>
> -Matt
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> > On Behalf Of Ken Ferguson
> > Sent: Thursday, August 19, 2004 10:43 AM
> > To: CF-Talk
> > Subject: RE: BlueDragon cfinclude issues
> >
> > Right, first I had <cfif fileexists(variables.incfilename)>, but it
> > yields the same result, I was just playing around to see if anything
> > would help and my last revolution was trying the evaluate. It doesn't
> > really matter though, because it IS getting past that cfif and into
> the
> > cfinclude, but then it craps out.
> >
> >
> >
> > Ken Ferguson
> >
> > Fitz and Floyd
> >
> > http://www.fitzandfloyd.com <http://www.fitzandfloyd.com>
> >
> > http://www.exclusivelyfitz.com <http://www.exclusivelyfitz.com/>
> >
> > http://stores.ebay.com/fitzandfloydscharmingtails
> >
> >
> >
> > _____
> >
> > From: Matt Liotta [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, August 19, 2004 9:40 AM
> > To: CF-Talk
> > Subject: RE: BlueDragon cfinclude issues
> >
> >
> >
> > Maybe I am reading the following line wrong, but it looks like you are
> > trying to evaluate the filename as a variable.
> >
> > <cfif fileexists(evaluate(variables.incfilename))>
> >
> > Shouldn't the above be as follows?
> >
> > <cfif fileexists(variables.incfilename)>
> >
> > -Matt
> >
> > _____
> >
> >
> >
> >
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

