Code Critique - What is the difference between include and include_once in php?
Discuss What is the difference between include and include_once in php? in the PHP Development forum on Dev Shed. What is the difference between include and include_once in php? PHP Development forum discussing coding practices, tips on PHP, and other PHP-related topics. PHP is an open source scripting language that has taken the web development industry by storm.
Time spent in forums: 1 Month 2 Weeks 3 Days 18 h 49 m 46 sec
Reputation Power: 2336
I fail to see how this information could not have been gleaned from reading the documentation for include and include_once. I mean, it's right in the first paragraph of the page for include_once (in fact, it's right in the function name itself!):
The include_once statement includes and evaluates the specified file during the execution of the script. This is a behavior similar to the include statement, with the only difference being that if the code from a file has already been included, it will not be included again. As the name suggests, it will be included just once.
If you want to be a software developer of any type, you must learn to read the documentation.
I ♥ ManiacDan & requinix
This is a sig, and not necessarily a comment on the OP: Please don't be a help vampire!