To check for the existence of a file, use the fileexists() function:

<cfif fileexists("c:\inetpub\wwwroot\real\mystream.rm")>
        Provide the Stream
<cfelse>
        Stream Not Available
</cfif>

> -----Original Message-----
> From: Steve Bernard [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 29, 2001 5:44 PM
> To: CF-Talk
> Subject: RE: RealAudio and ColdFusion
>
>
> If CF and Real Server are on the same machine just use CFFILE.
>
> Steve
>
> -----Original Message-----
> From: David Grabbe [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 29, 2001 3:57 PM
> To: CF-Talk
> Subject: RealAudio and ColdFusion
>
>
> Howdy folks,
>
> I'm running CF 4.5.1.  The organization I work for has a weekly program
> which we stream via RealAudio.  The RealAudio aspect is working just fine,
> but I'm wondering if there is a way for CF to detect whether or not the
> RealAudio stream is active or not (i.e. check for the existence of the .rm
> file).  I looked into using CFHTTP, but couldn't get that to work --
> probably because of the media type.  I'm not actually wanting to download,
> just see if the stream exists.  If there an easy way to do this?
> Are there
> any RA gurus out there  :)
>
> Thanks in advance!
>
> Cheers,
> David
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to