Categories
apache javascript php

Accessing Apache environment variables from javascript

I have a requirement to access apache environment variable from js file. I am not sure this is possible or not.

I used to set Apache variables and access it in php using the following way

Set ENV varialbe

SetEnv PAYPAL_MODE live

From php

echo $_SERVER["PAYPAL_MODE"]; 

My question is can i access “PAYPAL_MODE” in my js file

<html>
<head>
alert(PAYPAL_MODE);
</head>
<body>
</body>
</html>