Re: How to get user full name using PHP function?

From: Date: Wed, 27 Mar 2002 07:31:41 +0000
Subject: Re: How to get user full name using PHP function?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-90330@lists.php.net to get a copy of this message
On Wed, 27 Mar 2002, gaukia 345 wrote: > I'm writing a web mail. Having problem grabbing user full name to be > included in the email. So I hv a few questions: > > 1) How do I fetch the user's full name using a PHP function WITHOUT > calling system program finger? I already have the Linux user ID and > password since I am using HTTP authentication. Check out the function posix_getpwnam(), in particular, the gecos field. This obviously only works if the user account is present on your web server. > 2) How do I fetch it using finger? I wouldn't if I were you. > 3) Do I put the full name in the from->personal variable? Difficult to say. What is the from->personal variable? miguel

« previous php.general (#90330) next »