the difference of the speed between include() and require() is hardly noticeable.
The difference between include() and require() is that, if you have include() inside an if statement, and if the statement is true then the include() will be executed. And if similarly you have require() in if statement, then no matter if the statement is true or false, the require() will get executed in all casses.
And yes, include() or require() will get repeated as many times as you have the loop's life. This can cause some troubles, e.g. duplicating the functions etc.
To get round this problem, you must use include_once() or require_once(). this makes sure that the file is onyl incouded or required once. These functions are only supported after php4.0.1pl1 version.
And by the way, in above code the condition in if statement should have '==' and not just = . that will make it true in all cases.
good luck,
Daarius...