What alternative methods can be used to determine the script being executed in autoprepend in PHP?

When using the `auto_prepend_file` directive in PHP to include a script before every PHP script execution, it can be useful to determine the specific script being executed within the autoprepend file. One alternative method to achieve this is by using `$_SERVER['SCRIPT_FILENAME']` or `$_SERVER['PHP_SELF']` to get the path of the current script being executed.

// autoprepend.php

// Get the path of the current script being executed
$currentScript = $_SERVER['SCRIPT_FILENAME'];

// Output the current script being executed
echo "Currently executing: $currentScript";