CFFILE and CFHTTP are for different things:

You can't use CFFILE if:
* target file is not in local system
* you need to process the file through the web server/application server of
the target system (eg. to generate HTML from CFM files).

You can't use CFHTTP if:
* target file is not under the web root
* you want the unprocessed file (eg. original CFM source file)

You can use either CFFILE or CFHTTP if:
* target file is under web root of local system
* target file is just a static HTML file
In this case, use CFFILE because it will always have less overhead than
CFHTTP.

Regards: Ayudh

+--------------------------------------------------------------+
| Turn on your Revenue Stream...                               |
| Bolt on a Virtual Cash Register to your e-commerce site now. |
| VeriPay from Xilo Online: http://www.xilo.com                |
+--------------------------------------------------------------+
----- Original Message -----
From: "Daniel Morphett" <[EMAIL PROTECTED]>
To: "CFAussie Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 05, 2003 09:07
Subject: [cfaussie] Re: CFFILE vs CFHTTP to read file to db


> I'd steer well clear of cfhttp if I were you: it's crap. Notoriously slow
> and unreliable.
>
> on the subject, anyone know of a good alternative to it? Like a cfx tag?
> calling a com object instead?
>
> At 01:34 PM 2/4/2003 +1100, you wrote:
> >I am wondering if anyone has any thoughts and opinions on unsing CFFILE
vs
> >CFHTTP to read a file and insert the content into a database. Is one or
> >other more reliable, flexible in handling the content.
> >
> >Currently I use a CFHTTP call to read and loop over the content of a text
> >file to insert it into the database. With CFMX I have had a few problems
> >with the way this works, and since I have not used CFFILE before to
> >perform this action, I want to know the communities thoughts on the
> >differences.
> >
> >Thanks
> >Mark
> >
> >---
> >You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> >To unsubscribe send a blank email to
[EMAIL PROTECTED]
> >
> >MX Downunder AsiaPac DevCon - http://mxdu.com/
>
>
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
[EMAIL PROTECTED]
>
> MX Downunder AsiaPac DevCon - http://mxdu.com/


---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to