Try doing a loop over this 1000 times, the CFHTTP will open 1000 
connections
where as the cfinclude does one import.

Nat

-----Original Message-----
From: Steve Oliver [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 14, 2002 10:43 AM
To: CF-Talk
Subject: RE: cfinclude, who to pass for variables to?


Ok were talking milliseconds here, but yeah variables are passed to any
page that you cfinclude, so it would be easier to do it that way.

______________________
steve oliver
atnet solutions, inc.
http://www.atnetsolutions.com


-----Original Message-----
From: Stephen Moretti [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 14, 2002 10:38 AM
To: CF-Talk
Subject: Re: cfinclude, who to pass for variables to?


Steve,

> You can't pass variables in a cfinclude, but you could use cfhttp,
since
> it's on the same server it should work just as fast as a cfinclude,
and
> you can pass variables in cfhttp.
>
No man!  Its definitely not just as fast!

cfinclude, just includes a file direct from the server at interpreting
time
(i.e.. when the template is called), where you can process the contents
immediately using any variables available in the calling template.

cfhttp will make a http connection back to the web server, which will
connect to the cf server to pick up the template, interpret it, send 
the
results back to the web server which then sends the results back to the
template with the cfhttp in it, where you'll then have to process the
cfhttp
results.

You don't need to pass variables into the cfinclude, because any
variables
that are available in the calling template are available in the 
included
template as well.  Its as if the code you've just included was there
directly in the page.

Regards

Stephen


______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
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