how could I determin if in ssl environemnt

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jmut
Forum Regular
Posts: 945
Joined: Tue Jul 05, 2005 3:54 am
Location: Sofia, Bulgaria
Contact:

how could I determin if in ssl environemnt

Post by jmut »

I am generating this link
but
on one system I am working it is http
on the onter it should be https

Is there any way I could determine this automatically.
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post by hawleyjr »

The $_SERVER variable will hold all the information you need :)
jmut
Forum Regular
Posts: 945
Joined: Tue Jul 05, 2005 3:54 am
Location: Sofia, Bulgaria
Contact:

Post by jmut »

hawleyjr wrote:The $_SERVER variable will hold all the information you need :)
yepee :)
10xy
Post Reply