No way, curl is much faster than file_get_contents().

http://monitor.trucex.com/curltest.php

Some examples of that test output:

---------------------------------------
Calculating 10 queries to http://www.flickr.com/
..........cURL took 0.953103 seconds.
..........file_get_contents() took 2.283331 seconds.

Calculating 10 queries to http://www.yahoo.com/
..........cURL took 0.713752 seconds.
..........file_get_contents() took 1.592310 seconds.

Calculating 10 queries to http://www.ebay.com/
..........cURL took 0.831023 seconds.
..........file_get_contents() took 2.827789 seconds.

Calculating 10 queries to http://www.godaddy.com/
..........cURL took 0.359577 seconds.
..........file_get_contents() took 8.521148 seconds.

Calculating 10 queries to http://www.php.net/
..........cURL took 0.710871 seconds.
..........file_get_contents() took 1.958811 seconds.
---------------------------------------

-MI

---------------------------------------------------------------------------

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 

BAKE ON!


-----Mensaje original-----
De: [email protected] [mailto:[EMAIL PROTECTED] En nombre
de anselm
Enviado el: Martes, 19 de Diciembre de 2006 07:53 a.m.
Para: Cake PHP
Asunto: Re: Including a cakephp action result in another site

If you just want to grab the
content, and display it as it is the fastest way is to use
file_get_contents (provided you have fopen wrappers installed) :


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to