I am calling a php file from another php file with
include instruction. What I want is that when I call that php file, I want the entire file to be executed or that no line in that file is executed.
In SQL it would be like a transaction, but in php I don´t know if that´s possible. Is there any way to do that?
What I mean is that when I use
include, the whole file runs and it takes about 5 seconds. If during those 5 seconds there is an interruption, the execution is halfway and leaves incomplete files. That is why I want the entire file to run or that no line is executed. I´m doing some operations with a MYSQL database and session variables declarations