On Fri, 27 May 2011, Curtis Maurand wrote:
$_SERVER['HTTPS']
I don't see this at all.
I'm definitely connecting securely. Here are the status lines from Lynx
when surfing to https://MintFM.net/phpinfo.php:
1. Looking up mintfm.net
2. Making HTTPS connection to mintfm.net
3.
LOL :)
Just saw phpinfo() and you are right, it shows port 80 even if it's httpS :0
But the problem is, that $_SERVER['SERVER_PORT'] is apache variable and not
php, meaning that apache is telling PHP that it works on port 80.
Even if you use .htaccess and variable %{SERVER_PORT} it will not work
On Thu, 26 May 2011, ad...@buskirkgraphics.com wrote:
So when you echo $_SERVER['SERVER_PORT'];
You get port 80 even if the url currently is https://www.yoursite.com ?
Yes.
If this is the case good luck. Because you have serious issues.
OK. This on its own is not particularly helpful.
$_SERVER['HTTPS']
?php
if($_SERVER['HTTPS']){
echo 'you are secured';
}else{
echo 'you are not secured';
}
?
--Curtis
On 5/26/2011 3:37 PM, Geoff Shang wrote:
Hi,
Apologies if this is covered somewhere but I've searched fairly
extensively and not found anything.
I'm working on an
The %{HTTPS} variable is not an Apache core variable. A more-portable
solution is to check %{SERVER_PORT} for port 80 or port 443 -- or for not
port 80 or not port 443.
Also, you're requiring an *exact* match on not /user or not /admin,
meaning that directory and file paths below these
On Thu, 26 May 2011, ad...@buskirkgraphics.com wrote:
The %{HTTPS} variable is not an Apache core variable. A more-portable
solution is to check %{SERVER_PORT} for port 80 or port 443 -- or for not
port 80 or not port 443.
ah but this doesn't actually work for me, I get 80 regardless of
, May 26, 2011 5:29 PM
To: ad...@buskirkgraphics.com
Cc: php-general@lists.php.net
Subject: RE: [PHP] Detecting HTTPS connections under Apache
On Thu, 26 May 2011, ad...@buskirkgraphics.com wrote:
The %{HTTPS} variable is not an Apache core variable. A more-portable
solution is to check
7 matches
Mail list logo