Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: posix_geteuid - Manual
[go: Go Back, main page]

PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

posix_getgid" width="11" height="7"/> <posix_getegid
Last updated: Thu, 31 May 2007

view this page in

posix_geteuid

(PHP 4, PHP 5)

posix_geteuid — 現在のプロセスの有効なユーザ ID を返す

説明

int posix_geteuid ( void )

現在のプロセスの有効なユーザ ID を返します。 使用可能なユーザ名に変換する方法に関する情報については、 posix_getpwuid() も参照ください。

例 1820. posix_geteuid() の例

この例は、まず現在のユーザ ID を表示し、 それから posix_seteuid() で実効ユーザ ID を設定します。その後、改めて実ユーザ ID と実効ユーザ ID を表示します。

<?php
echo posix_getuid().'\n'; //10001
echo posix_geteuid().'\n'; //10001
posix_seteuid(10000);
echo
posix_getuid().'\n'; //10001
echo posix_geteuid().'\n'; //10000
?>

返り値

ユーザ ID を表す整数値を返します。

参考

posix_getpwuid() は、ユーザについての詳細な情報を取得します
posix_getuid() は、実ユーザ ID を取得します
posix_setuid() は、実効ユーザ ID を変更します
POSIX man ページ GETEUID(2)



add a note add a note User Contributed Notes
posix_geteuid
There are no user contributed notes for this page.

posix_getgid" width="11" height="7"/> <posix_getegid
Last updated: Thu, 31 May 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites