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_getgid - 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_getgrgid" width="11" height="7"/> <posix_geteuid
Last updated: Fri, 10 Sep 2010

view this page in

posix_getgid

(PHP 4, PHP 5)

posix_getgid現在のプロセスの実際のグループ ID を返す

説明

int posix_getgid ( void )

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

返り値

実際のグループ ID を表す整数値を返します。

例1 posix_getgid() の例

この例では、実グループ ID を表示し、 実効グループ ID を変更した後で再度実グループ ID を表示します。 have changed your effective group id.

<?php
echo '実グループ ID は '.posix_getgid(); //20
posix_setegid(40);
echo 
'実グループ ID は '.posix_getgid(); //20
echo '実効グループ ID は '.posix_getegid(); //40
?>

参考

  • posix_getgrgid() - 指定したグループ ID を有するグループに関する情報を返す
  • posix_getegid() - 現在のプロセスの有効なグループ ID を返す
  • posix_setgid() - 現在のプロセスの GID を設定する
  • POSIX man ページ GETGID(2)



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

posix_getgrgid" width="11" height="7"/> <posix_geteuid
Last updated: Fri, 10 Sep 2010
 
 
show source | credits | sitemap | contact | advertising | mirror sites