downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  

<posix_getsidposix_initgroups>
Last updated: Thu, 26 Jun 2008

posix_getuid

(PHP 4, PHP 5)

posix_getuid — Return the real user ID of the current process

Description

int posix_getuid ( void )

Return the numeric real user ID of the current process.

Return Values

Returns the user id, as an integer

Examples

Example #1 Example use of posix_getuid()

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

See Also

  • posix_getpwuid() for information on how to convert this into a useable username
  • POSIX man page GETUID(2)



add a noteadd a note User Contributed Notes
Return the real user ID of the current process
There are no user contributed notes for this page.




<posix_getsidposix_initgroups>
Last updated: Thu, 26 Jun 2008
show source | credits | sitemap | contact | advertising | mirror sites
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://phpbuilder.com/
Last updated: Tue Nov 1 20:20:59 2005 EST
Columns / Articles | Tips / Quickies | News | News Linking and RSS Feeds | Shared Code Library
Mail Archives | Support / Discussion Forums | Get Started! Links | Contribute! | Docs