How can the user executing a PHP script determine under which user context the script is running, especially in the context of DHCP server management?

To determine under which user context a PHP script is running, especially in the context of DHCP server management, you can use the `get_current_user()` function in PHP. This function returns the name of the user that owns the PHP script being executed. By checking the output of this function, you can determine the user context in which the script is running.

$user = get_current_user();
echo "Current user: " . $user;