Re: Proposal for 2 new magic constants
| From: | Andrey Andreev | Date: | Sat, 23 May 2026 21:25:08 +0000 |
| Subject: | Re: Proposal for 2 new magic constants | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-131000@lists.php.net to get a copy of this message | ||
Hi Marc,
getenv('HOME') and getenv('USER') are probably what you're looking for,
although HOME might be a non-Windows thing.
Both variables should also be available in $_SERVER.
Cheers,
Andrey.