Get the name of the owner of the current PHP script in PHP

Description

The following code shows how to get the name of the owner of the current PHP script.

Example


/* w  ww .ja v  a 2s .c o  m*/
//get_current_user() example
<?php
echo 'Current script owner: ' . get_current_user();
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    Development »




Environment
Error
Hash
Include
Locale
Math
Network
Output
Reflection
PHP Regular Expressions