RE: Checking for file on server

2000-07-23 Thread Duane Boudreau

> Duane,
>
> Thanks. That did the trick (he says as he slinks off, thinking, "Why
> didn't I think of that?")

:) Been there.

The best way I find to debug path problems is to just output the path to the
screen and see if it what you expected.

Glad to help,
Duane

>
> Regards,
> John
>
> Duane Boudreau wrote:
> >
> > Try:
> >
> > 
> >
> > instead of
> >
> > 
> >
> > Duane Boudreau
> > CFExperts.Com
> >
> --
> 
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf
> _talk or send a message to [EMAIL PROTECTED] with
> 'unsubscribe' in the body.
>

--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Checking for file on server

2000-07-23 Thread John Allred

Duane,

Thanks. That did the trick (he says as he slinks off, thinking, "Why
didn't I think of that?")

Regards,
John

Duane Boudreau wrote:
> 
> Try:
> 
> 
> 
> instead of
> 
> 
> 
> Duane Boudreau
> CFExperts.Com
>
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: Checking for file on server

2000-07-23 Thread Duane Boudreau

Try:



instead of 



Duane Boudreau
CFExperts.Com


> -Original Message-
> From: John Allred [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, July 23, 2000 5:10 PM
> To: CF-Talk
> Subject: Checking for file on server
> 
> 
> Hi,
> 
> I need to check for the existence of an image file and either display
> the file, if it exists, or display a default file.
> 
> I have worked up the following code, which produces no errors, but it
> will not display the default file when the file I'm checking for doesn't
> exist. Can anyone see the error?
> 
> 
> 
> 
> 
>  height=155 width=128 alt="#FN# #MN# #LN#">
>  height=155 width=128 alt="#FN# #MN# #LN#">
> 
> 
> In either case, the code, "pics/#FILENAME#.jpg," gets executed. If I
> swap the two parts of the CFIF, then "pics/no_pic.jpg" gets executed in
> either case. So I know my test always evaluates to false. I tried
> changing the fileExists parameter to "pics/#FILENAME#.jpg", but I get
> the same result.
> 
> This template is in the root, and the picture files are in [root]/pics/
> 
> Thanks,
> --John
> --
> 
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> To Unsubscribe visit 
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf
> _talk or send a message to [EMAIL PROTECTED] with 
> 'unsubscribe' in the body.
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.