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]

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

search for in the

posix_getgid" width="11" height="7"/> <posix_getegid
Last updated: Fri, 10 Sep 2010

view this page in

posix_geteuid

(PHP 4, PHP 5)

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

説明

int posix_geteuid ( void )

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

返り値

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

例1 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
?>

参考

  • posix_getpwuid() - 指定 ID のユーザに関する情報を返す
  • posix_getuid() - 現在のプロセスの実際のユーザ ID を返す
  • posix_setuid() - 現在のプロセスの UID を設定する
  • 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: Fri, 10 Sep 2010
 
 
show source | credits | sitemap | contact | advertising | mirror sites