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 -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Restarting Supervisor and effect on FlaskSocketIO -