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

search for in the

posix_initgroups> <posix_getsid
[edit] Last updated: Fri, 10 Feb 2012

view this page in

posix_getuid

(PHP 4, PHP 5)

posix_getuid現在のプロセスの実際のユーザ ID を返す

説明

int posix_getuid ( void )

現在のプロセスの実際のユーザ ID を返します。

返り値

ID を表す整数値を返します。

例1 posix_getuid() の使用例

<?php
echo posix_getuid(); //10000
?>

参考

  • posix_getpwuid() - 指定 ID のユーザに関する情報を返す
  • POSIX man ページ GETUID(2)



add a note add a note User Contributed Notes posix_getuid
chris at ocportal dot com 29-Nov-2008 11:35
Note that this function is not defined on Windows PHP.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites