| Subject: | Re: How to detect file not found? |
|---|---|
| From: | "LeeBC" |
| Date: | Mon, 23 Jul 2007 16:58:22 +0000 UTC |
| Newsgroups: | macromedia.coldfusion.cfml_general_discussion |
Thank you. Did exactly what I needed.
<!--- This code puts a default "Picture Unavailable if the person's image does
not exist in the directory --->
<cfset imagepath = "images"& "/" & #getPeople.URLimage#>
<cfif fileexists(expandpath(imagepath))>
<img src="images/#getPeople.URLimage#" width="100" height="110"
border="1"></a>
<cfelse>
<img
src="https://secure.kent-school.edu/parents/Facebook/images/unavailable.jpg"
width="100" height="110" border="1"></a>
</cfif>
<!--- End --->
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | cfchart seriersPlacement, Lei Hu |
|---|---|
| Next by Date: | Re: How to detect file not found?, Ian Skinner |
| Previous by Thread: | Re: How to detect file not found?, frank_tudor |
| Next by Thread: | Re: How to detect file not found?, Ian Skinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |