I have an application which I run on a number of different servers and my laptop.
It has a simple config.php script, for things such as MySQL server credentials.
What I want to do is detect which Windows computer the application is using via the Windows environement variable.
IE %COMPUTERNAME%
But the PHP $_ENV array is empty how do i get the windows host name ???
Start Free Trial