CakeFest 2024: The Official CakePHP Conference

posix_getgid

(PHP 4, PHP 5, PHP 7, PHP 8)

posix_getgidRetourne l'UID du groupe du processus courant

Description

posix_getgid(): int

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

Liste de paramètres

Cette fonction ne contient aucun paramètre.

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

User Contributed Notes 1 note

up
4
vector from ionisis.com
12 years ago
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
To Top