Re: Windows Environment Variables
| From: | Rodney Green | Date: | Wed, 26 Nov 2003 13:19:58 +0000 |
| Subject: | Re: Windows Environment Variables | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-171053@lists.php.net to get a copy of this message | ||
Jason Wong wrote:
On Wednesday 26 November 2003 00:24, Rodney Green wrote:<?php $blah = shell_exec ("echo %ComputerName%"); print $blah; ?>Is PHP able to access and use Windows Environment Variables? If so, is there a function or a reference you can point me to?If any are available they would most likely be in: print_r($_SERVER) Thanks Jason. That gave me what I needed. Another way I found to do it, though not as good, is to use shell_exec to call "echo" in Windows.