Hi,

How does one determine if a command line PHP script is being executed as root?

If there's no posix extension there's no posix_getuid and if the user
did 'su' and not 'su -' then the USER environment variable may not be
root.

Any other ways?

Mike
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to