[PHP] URL verification

2004-10-08 Thread Bruno Santos
Hello all. I have a login page where users have to authenticate themselves to access some site areas. Apache is configured to use https. the user when is typing the URL in the browser, i know that it will not put the https protocol. how can i check in the page if the user is accessing the the

Re: [PHP] URL verification

2004-10-08 Thread Matt M.
how can i check in the page if the user is accessing the the site via SSL ?? or i have to put a redirect in the page anyway, whether the user is alredy accessing the page via SSL? if it has to be https, why not just use mod_rewrite to make sure it is. With php you could check

Re: [PHP] URL verification

2004-10-08 Thread Greg Donald
On Fri, 08 Oct 2004 15:48:52 +0100, Bruno Santos [EMAIL PROTECTED] wrote: how can i check in the page if the user is accessing the the site via SSL ?? or i have to put a redirect in the page anyway, whether the user is alredy accessing the page via SSL? parse_url() -- Greg Donald Zend

Re: [PHP] URL verification

2004-10-08 Thread Marek Kilimajer
Bruno Santos wrote: Hello all. I have a login page where users have to authenticate themselves to access some site areas. Apache is configured to use https. the user when is typing the URL in the browser, i know that it will not put the https protocol. how can i check in the page if the user

RE: [PHP] URL verification

2004-10-08 Thread Justin Palmer
PROTECTED] Sent: Friday, October 08, 2004 7:49 AM To: [EMAIL PROTECTED] Subject: [PHP] URL verification Hello all. I have a login page where users have to authenticate themselves to access some site areas. Apache is configured to use https. the user when is typing the URL in the browser, i know

Re: [PHP] URL verification

2004-10-08 Thread Jordi Canals
Hi, Check the port number: 80 for http and 443 for https (standard defaults). You can check it with $_SERVER['SERVER_PORT'] i.e.: if ($_SERVER['SERVER_PORT'] != 443) { header('Location: https://some.location.here'); } Also, there is not important if the login form is displayed in SSL mode