[snip]
On a similar note, does php 'look at' all the functions even if not
used? I can understand it reads them, but does it involve any parsing
time?
[/snip]

http://us3.php.net/manual/en/function.include.php has a wealth of
information, including important notes about security of included files.
The first sentence on the page answers the question..."The include()
statement includes and evaluates the specified file." 

So if your include file is 500 lines long and the script you call it
from is 500 lines long the end result (to the parser) is a script 1000
lines long. But two separate 500 line scripts may be a lot easier to
manage and document than one single 1000 line file. Placing functions in
an include makes those functions "available" to other scripts as well,
instead of having to re-write them.

HTH!

Jay

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

Reply via email to