Forum Moderators: coopster
Is the extension "php" required on any file to "process" a php statement?
Thanks
Doug Wilkinson
Hmmm, don't know if that was very clear...
you can use require and include in phpAFAIK, it does exactly the same.
Just looked it up, only difference is error handling.
Thanks Sinner_G. I was going to correct this, but then I checked it and you're right. I never noticed this change. So now the way it works is that a failed require stops script execution, whereas a failed include just throws an error.
Before PHP 4.0.2 the main difference was that require always functioned, whereas include only functioned if the code was actually executed.
Tom