Re: [PHP] http vs https

2010-01-23 Thread Jonathan Tapicer
Hi, isset($_SERVER['HTTPS']) should do it. Regards, Jonathan On Sat, Jan 23, 2010 at 2:11 PM, 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

[PHP] http vs https

2010-01-23 Thread Ben Miller
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/scr