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> <posix_geteuid
[edit] Last updated: Fri, 25 May 2012

view this page in

posix_getgid

(PHP 4, PHP 5)

posix_getgidRetourne l'UID du groupe du processus courant

Description

int posix_getgid ( void )

Retourne l'ID réel du groupe du processus courant.

Valeurs de retour

Retourne l'ID réel du groupe, sous la forme d'un entier.

Exemples

Exemple #1 Exemple avec posix_getgid()

Cet exemple affichera l'ID réel du groupe.

<?php
echo 'Mon ID réel de groupe est : '.posix_getgid(); //20
posix_setegid(40);
echo 
'Mon ID réel de groupe est : '.posix_getgid(); //20
echo 'Mon ID effectif de groupe est : '.posix_getegid(); //40
?>

Voir aussi



add a note add a note User Contributed Notes posix_getgid
vector from ionisis.com 14-Oct-2011 05:07
i came across this error:
Call to undefined function posix_getuid()

which was solved by these commands:
yum -y install php-process
service httpd restart

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