On Wednesday 26 November 2003 00:24, Rodney Green wrote: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.
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)
<?php
$blah = shell_exec ("echo %ComputerName%"); print $blah;
?>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php