I think that file_get_contents() is quicker, since include() runs what it
gets as normal php code. And that gives you the answer to the other question
as well. :)


Niklas


-----Original Message-----
From: Patrick Teague [mailto:[EMAIL PROTECTED] 
Sent: 4. maaliskuuta 2003 10:57
To: [EMAIL PROTECTED]
Subject: [PHP] Performance Question


What's the difference in performance between

print( file_get_contents("myfile.html") );

and

include("myfile.html");

is there any particular reason for using one over the other?

Patrick



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

###########################################
This message has been scanned by F-Secure Anti-Virus for Internet Mail. For
more information, connect to http://www.F-Secure.com/

###########################################
This message has been scanned by F-Secure Anti-Virus for Internet Mail.
For more information, connect to http://www.F-Secure.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to