Re: http vs https

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ben Miller wrote:
> Is there a PHP function that will return whether the request was http or
> https?  I have functions that need to cURL other servers - sometimes over
> SSL, sometimes not, depending whether the function is called from
> http://www.mydomain.com/script_that_calls_function.php or
> https://www.mydomain.com/script_that_calls_function.php
> 
> Hope the question is clear.  Thanks,
> 

$_SERVER['HTTPS']
Set to a non-empty value if the script was queried through the HTTPS
protocol.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux