Re: [PHP] http vs https

2010-01-23 Thread Jonathan Tapicer
Hi, isset($_SERVER['HTTPS']) should do it. Regards, Jonathan On Sat, Jan 23, 2010 at 2:11 PM, Ben Miller biprel...@gmail.com 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,

Re: [PHP] http to https session problem

2005-06-11 Thread Richard Lynch
On Thu, June 9, 2005 7:43 am, Joe Harman said: I am having a little problem with users keeping the same session id when they go from http to https... is there a work around for this... I don't appear to have this problem when using openSSL just when the site has it's own certificate. should

Re: [PHP] http to https session problem

2005-06-11 Thread Joe Harman
On 6/11/05, Joe Harman [EMAIL PROTECTED] wrote: On 6/11/05, Richard Lynch [EMAIL PROTECTED] wrote: On Thu, June 9, 2005 7:43 am, Joe Harman said: I am having a little problem with users keeping the same session id when they go from http to https... is there a work around for this... I

RE: [PHP] http to https

2004-06-18 Thread Ryan Schefke
] Subject: Re: [PHP] http to https Well, I'm no php-guru, that's for sure, but if you are trying to call: https://www.tgwedding.com/payment6.php from http://www.tgwedding.com/payment6.php might be where the problem lies. You might need to do a 'refresh' since What is strange is when I go back on my

RE: [PHP] http to https

2004-06-18 Thread R'twick Niceorgaw
Hi Ryan, you have an error in your script. Quoting Ryan Schefke [EMAIL PROTECTED]: ?php header ('Location https://www.tgwedding.com/payment6.php'); exit; ? correct one is ?php header ('Location: https://www.tgwedding.com/payment6.php'); ? Note the : after Location. HTH -R'twick --

Re: [PHP] http to https

2004-06-17 Thread Andre Dubuc
Hi Ryan, I encountered all sorts of problems attempting to do the same (especially with AOL, Yahoo, etc click-throughs). I finally resolved the problem by calling https on the page itself (which is listed then as http) like so at the top (after my session_start(); of course: ?php if

RE: [PHP] http to https

2004-06-17 Thread Chris W. Parker
Ryan Schefke mailto:[EMAIL PROTECTED] on Thursday, June 17, 2004 4:28 PM said: [snip] [snip] [snip] What am I doing wrong? you're pressing the return key too much. 0_0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] http to https

2004-06-17 Thread Ryan Schefke
that link in a browser http is working fine. -Original Message- From: Andre Dubuc [mailto:[EMAIL PROTECTED] Sent: Thursday, June 17, 2004 8:01 PM To: Ryan Schefke; [EMAIL PROTECTED] Subject: Re: [PHP] http to https Hi Ryan, I encountered all sorts of problems attempting to do the same

RE: [PHP] http to https

2004-06-17 Thread Ryan Schefke
(Location: $redirect); } = -Original Message- From: Andre Dubuc [mailto:[EMAIL PROTECTED] Sent: Thursday, June 17, 2004 8:01 PM To: Ryan Schefke; [EMAIL PROTECTED] Subject: Re: [PHP] http to https Hi Ryan, I encountered all sorts

Re: [PHP] http to https

2004-06-17 Thread Andre Dubuc
[mailto:[EMAIL PROTECTED] Sent: Thursday, June 17, 2004 8:26 PM To: Ryan Schefke Subject: Re: [PHP] http to https Just a thought - is https on the server set? (Check your php.ini) On Thursday 17 June 2004 08:20 pm, Ryan Schefke wrote: Hi Andre, Thanks for responding. I'm not using sessions

Re: [PHP] http to https

2004-06-17 Thread hitek
try placing an exit(); after your header line. At 04:27 PM 6/17/2004, Ryan Schefke wrote: I'm getting some strange behavior when trying to go from http to an https script. After clicking a form submit button the script will execute the two lines below. It does this and sends it to the correct

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-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: Unfortunally is not

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

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
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 there is

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: So

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

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:

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 out

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