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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -