PHP.nl

get_current_user

get_current_user

Gets the name of the owner of the current PHP script

string **get_current_user**

Returns the name of the owner of the current PHP script.

Returns the username as a string.

Voorbeeld: example

<?php
echo 'Current script owner: ' . get_current_user();
?>
Current script owner: SYSTEM

getmyuid``getmygid``getmypid``getmyinode``getlastmod