Hi,
Could you please tell me how to do the following:
"on_insert" event, I would like to run an external php script which updates some database fields using external data.
Here is part of my script:
…
$eg3["on_insert"] = array("add_walletGrid03", null, true);
$g3->set_events($eg3);
function add_walletGrid03($data)
{
$id = intval($_GET["rowid"]);
$data["params"]["transaction_wallet_id"] = $id;
===> Here is where i would like to run "../my_script.php"
}
How can I achieve this please ?
3 Answers
You can simple include or require this php script.
It will get executed.
include("../my_script.php");
You may need to adjust file paths if you have included other files in it.
Your Answer