PHP Options/Info Funciones
PHP Manual

get_current_user

(PHP 4, PHP 5)

get_current_userGets the name of the owner of the current PHP script

Descripción

string get_current_user ( void )

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

Valores devueltos

Returns the username as a string.

Ejemplos

Example #1 get_current_user() example

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

El resultado del ejemplo sería algo similar a:

Current script owner: SYSTEM

Ver también


PHP Options/Info Funciones
PHP Manual