Does CFFILE work with URLs?  I thought it was only with file system paths.
I think the period is just a grammatically correct error message putting the
period inside the quote mark ...

-----Original Message-----
From: Mitko Gerensky-Greene [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 3:00 PM
To: CF-Talk
Subject: Urgent: Need help with a CFFILE error


Hello,

I am uploading an application which was built by the previous team and now I
have to resolve some issues...

Here is the page:
http://webapps1.hud.gov/pih/pha/plans/approved/approved_plans.cfm

When there, select a state from the drop down menu and then it takes you to:

http://webapps1.hud.gov/pih/pha/plans/approved/view_approved_plans.cfm

Here is the segment of code from view_approved_plans.cfm:

        <cfset CURRENTDIRECTORY = #GETDIRECTORYFROMPATH(GETTEMPLATEPATH())#>
        <cfoutput> 
          <!--
FILE="http://www2.hud.gov/pih/pha/plans/approved/#fiscalyear#/#statecode#_#f
iscalyear#.txt" -->
          <cfif #statecode# NEQ "0">
          <cffile action="Read" 
        
file="http://www.hud.gov/offices/pih/pha/approved/#fiscalyear#/#statecode#_#
fiscalyear#.txt"
                 variable="phacodeoff">
          <cfset codeofflist=ListToArray(phacodeoff,";")>
          </cfif>
        </cfoutput> 

And here is the error I am getting:

Error Diagnostic Information
Error processing CFFILE

Error attempting to read
'http://www.hud.gov/offices/pih/pha/approved/02/al_02.txt.' No such file or
directory (error 2)

The error occurred while processing an element with a general identifier of
(CFFILE), occupying document position (449:11) to (451:25).


Date/Time: Thu Sep 19 17:41:05 2002
Browser: Mozilla/4.0 (compatible; MSIE 5.5; Windows 95; YComp 5.0.0.0)
Remote Address: 10.200.36.101
HTTP Referrer:
http://webapps1.hud.gov/pih/pha/plans/approved/approved_plans.cfm


Now, I have no clue why is there a dot in the end of the file name which is
being read:
'http://www.hud.gov/offices/pih/pha/approved/02/al_02.txt.' 

If you go to http://www.hud.gov/offices/pih/pha/approved/02/al_02.txt you
will see that the file is there.

Any help will be appreciated!

Thanks,

Mitko

PS. I think the app server is ColdFusion 5 on Netscape Enterprise Server.

______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to