Re: [PHP] Re: http vs https

2010-01-23 Thread Adam Richardson
Just as a warning, I have worked on linux servers where this did not work, perhaps because of what silverquick points out: http://www.php.net/manual/en/reserved.variables.server.php I think the HTTPS element will only be present under Apache 2.x. It's not in > the list of "special" variables here:

[PHP] Re: http vs https

2010-01-23 Thread Nathan Rixham
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 >