I have 6 php scripts that perform several functions and also send custom emails.
I have them loaded into the project output/include folder and I reference them with a clickable link on various pages.
I only want the scripts to execute as a callable function from the php code snippet created with the Visual Editor.
To "notify" PHPRunner that it should INCLUDE these extra function files on updates uploaded to the server I looked at your instructions
on LINKING a file to a page.
According to your documentation I should add my custom php actions to that page's Events file at "After table initialized" like this --
function AfterTableInit()
{
include("myowncustomfile.php");
}
But I suddenly had a big question about this .... by "LINKING" my custom actions file in this manner does this not START or INITIATE the script itself as soon as the Page itself loads?
Right now I can click a link to that file on the List page view WHEN I want to those actions to happen.
Am I correct in thinking that if I LINK that file that it does more than create an "association" but it actually Executes those actions in my custom php file simply by the page loading? And every time the page loads those actions would be invoked?
If "linking" the file causes it to execute at the same time the page it is linked to loads then this is not my intent.
I would appreciate some clarification on the consequences of linking a php file that looks up databases and starts updating tables and sending emails.