Jason Wong wrote:

On Wednesday 26 November 2003 00:24, Rodney Green wrote:



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.

<?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



Reply via email to