Is it possible to read environment variables from php? -
the environment variable logonserver available cmd prompt
echo %logonserver%
is possible read variable php accessed via browser , not cmd prompt, means can't pass value in parameter.
i know shell out cmd , way, wondering if there built-in php functionality this.
yes. environment variables accessible through super-global $_server
variable. try var_dump($_server)
see what's inside.
Comments
Post a Comment