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]

PHP
downloads | documentation | faq | getting help | mailing lists | 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, 29 Aug 2008

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() は、実効グループ ID を変更します
  • 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, 29 Aug 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites