Tuesday, December 1, 2009

What is the difference between include and require?

It's how they handle failures.
If the file is not found by require(), it will cause a fatal error and halt the execution of the script.
If the file is not found by include(), a warning will be issued, but execution will continue.

No comments:

Post a Comment

I just got my #domain @BigRock. Get upto 25% off with my personalized coupon link Get upto 25% off