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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

