> woah u kiddin me ? i'm sure i edited a function in a functions file which
> wasnt executed and it still got parsed (spat out errors)

Well connecting to a database, etc. does take overhead above and beyond
a function.  So yes, it does save resources to include it.

And I am not completely sure of the way PHP handles things internally,
but I have noticed that functions don't cause PHP to yelp and moan
unless they are called (for some errors).  Plus if a function uses
several kb of memory include_once or require_once() ing them /will/ save
resources on a server.

-Dan

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

Reply via email to