RE: [PHP] Performance Question

From: Date: Tue, 04 Mar 2003 09:14:26 +0000
Subject: RE: [PHP] Performance Question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-138058@lists.php.net to get a copy of this message
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:webdude@veslach.com] Sent: 4. maaliskuuta 2003 10:57 To: php-general@lists.php.net 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/

« previous php.general (#138058) next »