Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MY PHP/server setting? has no value for HTTPS ?

Status
Not open for further replies.

webdev007

Programmer
Sep 9, 2005
168
I am installing a “CubeCart” (On a dedicated server), my cart and DB work fine however when I try to get cranked on the HTTPS/SSL
I create an endless loop
I did run a test
<?php
echo $_SERVER["HTTPS"];
// if return 0 my php environment doesn't give a value for
// $_SERVER["HTTPS"]
?>
It returned 0
Reason is that it looks like the server/php doesn't have a value for that variable then it will never detect it and CubeCart will go into a continious loop.
any idea on what my next move could be?
Thanks

 
Brand I am not sure but I run
RH entreprise
int P4 @3 gig
etc..
I ran a
$_SERVER['SERVER_PORT']
which returned port 80
so we can be pretty sure that HTTPS is not enabled
thanks
 
HTTP or HTTPS is not decided by PHP, but by the web server. There is nothing to configure in PHP.

HTTP or HTTPS will be supported or not supported at your web server, not at the script. Think of HTTPS as an encrypted channel between your computer and the server (which, indeed, it is). PHP is on the far side of that encrypted channel, so any data transmitted from the web client will have been decrypted before the data ever gets to PHP.

There are only one or two differences between the behavior of PHP when it is being invoked through HTTPS. And all but one, the value in $_SERVER['HTTPS'], are pretty obscure.

Is your web server configured to support HTTPS to your site? Can you connect to your script using [ignore][/ignore] ? If not, you need to configure your web server to support HTTPS.

If you are getting $_SERVER['SERVER_PORT'] of 80, then you are connecting to your web server via [ignore][/ignore]. Even if your web site supports HTTPS, you're not going to get an encrypted channel unless you connect via [ignore]http[/ignore][red]s[/red][ignore]://...[/ignore]




Want the best answers? Ask the best questions!

TANSTAAFL!!
 
I connected via https and my SSL address
but still get that port 80
thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top