I have one simple PHP file which I am running from command line like
php my-file.php
and its working fine without any issue. I want run another file when some event happen like below
<?php
echo " hello this is sample";
exit();
// I want run another file here after exit command called
next-file.php
echo "next-file is successfully running";
?>
Let me know if someone can give idea how can I achieve this? Thanks