[Solved] Does an include execute the PHP code of the included file?


There are a few things i’m missing from the question, but basically, yes. PHP will execute code inside of the PHP file if included, that is what PHP does. it executes to output code to the browser. If you do not want it to execute the code, I would suggest wrapping it in a function or sending an ajax call to the page when you are ready to execute it.

solved Does an include execute the PHP code of the included file?