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
Hi,
Apologies if this is covered somewhere but I've searched fairly
extensively and not found anything.
I'm working on an application which has a function for redirecting to a
given URL. This is generally used for redirecting after a form has been
submitted.
Right now it sends an HTTP
_default_:443
RewriteRule !^/(user|admin)(/.*)?$ http://example.com%{REQUEST_URI}
[R=301,L]
/VirtualHost
Richard L. Buskirk
-Original Message-
From: Geoff Shang [mailto:ge...@quitelikely.com]
Sent: Thursday, May 26, 2011 3:38 PM
To: php-general@lists.php.net
Subject: [PHP] Detecting HTTPS
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
8 matches
Mail list logo