include is executed once every time you write it. The point of using include_once is what you can do
include "myfile.php"; // Include file one time include "myfile.php"; // Include file again
This is completely legal, and in some cases you will want to do it.
The problem is that if you, for example, define a function in this file, php complains that you cannot define this method more than once (since the name has already been executed).
include_once ensures that the same file is not included more than once, so do the following:
include_once "myfile.php";
... Only one start is performed.
source share