Re: [PHP] HTTP or HTTPS

2003-04-05 Thread Alexander Weber
For sure, and this port changes every time I make a new request. Alex "Rasmus Lerdorf" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > No, the destination port will not change. You must be looking at the > source port. > > -Rasmus > > On Sat, 5 Apr 2003, Alexander Weber wrote

Re: [PHP] HTTP or HTTPS

2003-04-05 Thread Rasmus Lerdorf
No, the destination port will not change. You must be looking at the source port. -Rasmus On Sat, 5 Apr 2003, Alexander Weber wrote: > So far so good, the next problem is now, that the port changes with every > new request. Tried this on my "personal" server an my hoster's one. > > Perhaps ther

Re: [PHP] HTTP or HTTPS

2003-04-05 Thread Alexander Weber
So far so good, the next problem is now, that the port changes with every new request. Tried this on my "personal" server an my hoster's one. Perhaps there is another way? JScript, xml or anything other? Thanx so far, Alex "Rasmus Lerdorf" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL

Re: [PHP] HTTP or HTTPS

2003-04-05 Thread Rasmus Lerdorf
Presumably you know the HTTPS port on your server. Anything not SSL is going to be straight HTTP. The point here is that SSL happens a layer below PHP. PHP doesn't care whether it is running over SSL or not. In fact it has no idea what transport layer is below it. So your only way to tell is t

Re: [PHP] HTTP or HTTPS

2003-04-05 Thread Alexander Weber
But SERVER PORT is not always 80 using HTTP (not HTTPS). So this way is not really secure. Alex "Rasmus Lerdorf" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > I usually just use $_SERVER['SERVER_PORT'] > > -Rasmus > > On Sat, 5 Apr 2003, Alexander Weber wrote: > > > Unfortun

Re: [PHP] HTTP or HTTPS

2003-04-05 Thread Rasmus Lerdorf
I usually just use $_SERVER['SERVER_PORT'] -Rasmus On Sat, 5 Apr 2003, Alexander Weber wrote: > Unfortunally is not set. It's like the variable does not exist, because when > I extract the varaible $_SERVER with foreach I don't get HTTPS as key, only > SERVER_PROTOCOL. > > I'm using PHP 4.3.1 as

Re: [PHP] HTTP or HTTPS

2003-04-04 Thread Alexander Weber
Unfortunally is not set. It's like the variable does not exist, because when I extract the varaible $_SERVER with foreach I don't get HTTPS as key, only SERVER_PROTOCOL. I'm using PHP 4.3.1 as Apache2 Module on Win2k SP3. register_globals OFF safe:mode OFF stunnel 4.04 on x86-pc-mingw32-gnu WIN32

RE: [PHP] HTTP or HTTPS

2003-04-03 Thread John W. Holmes
> anybody knows how to find out the connection type (http or httpS)? Tried > out > $HTTP_SERVER_VARS. $_SERVER['HTTPS'] will be set if it's over HTTPS. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General M

Re: [PHP] HTTP or HTTPS

2003-04-03 Thread Alexander Weber
Hi Burhan, sorry but this tells me only HTTP/1.1 but not if the connection is secure or not. Alex "Burhan Khalid" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Alexander Weber wrote: > > Hi! > > > > anybody knows how to find out the connection type (http or httpS)? Tried ou

Re: [PHP] HTTP or HTTPS

2003-04-03 Thread Burhan Khalid
Alexander Weber wrote: Hi! anybody knows how to find out the connection type (http or httpS)? Tried out $HTTP_SERVER_VARS. Thanx a lot! Alex Try $_SERVER['SERVER_PROTOCOL'] -- Burhan Khalid phplist[at]meidomus[dot]com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] HTTP or HTTPS

2003-04-03 Thread Alexander Weber
Hi! anybody knows how to find out the connection type (http or httpS)? Tried out $HTTP_SERVER_VARS. Thanx a lot! Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php