RE: [PHP] Re: functions versus includes

From: Date: Mon, 12 Nov 2007 01:07:36 +0000
Subject: RE: [PHP] Re: functions versus includes
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-264334@lists.php.net to get a copy of this message
Wouldn't it be simpler to add some timers in and check for yourself? Bastien ----------------------------------------> To: php-general@lists.php.net> From: franklopes@comcast.net> Date: Sun, 11 Nov 2007 18:02:58 -0500> Subject: [PHP] Re: functions versus includes>> No takers on this topic?>>> ""Frank Lopes"" wrote in message> news:8E.57.64752.7EC06374@pb1.pair.com...>>I just started using PHP and got to think...>>>> Without getting into the discussion of "best practices", strictly from a>> performance perspective,>> what is faster: a function or an include?>>>> For example I have a block of text that needs to appear mutliple times>> throughout the site.>>>> Will I be better off creating a function with its contents and then later>> just calling the function or,>> will it be faster (from an execution perspective) for me to create an .inc>> file that gets included later on?>>>> Thanks for the your thoughts.>> --> PHP General Mailing List (http://www.php.net/)> To unsubscribe, visit: http://www.php.net/unsub.php> _________________________________________________________________ Have fun while connecting on Messenger! Click here to learn more. http://entertainment.sympatico.msn.ca/WindowsLiveMessenger

« previous php.general (#264334) next »