PHP Options/Info Функции
PHP Manual

get_current_user

(PHP 4, PHP 5)

get_current_userGets the name of the owner of the current PHP script

Описание

string get_current_user ( void )

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

Връщани стойности

Returns the username as a string.

Примери

Example #1 get_current_user() example

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

Примерът по-горе ще изведе нещо подобно на:

Current script owner: SYSTEM

Вж. също


PHP Options/Info Функции
PHP Manual