[thelist] Testing for secure connection in PHP

Tony Grimes info at scribenewmedia.com
Fri Apr 16 17:23:41 CDT 2004

I've got a credit card payment page that needs to be on a secure connection.
Is there any way to test to make sure that the user has connected to the
page via https?

The only way I can think of is test which server port is used, but I don't
want it to depend on the server config. Is there a more reliable way to test
this in PHP?


More information about the thelist mailing list