sslæ¥ç¶ãå¤å®ç¨
if ( (false === empty($_SERVER['HTTPS']))&&('off' !== $_SERVER['HTTPS']) ) { print "ssl\n"; } else { print "no ssl\n"; }
æ¡ä»¶å¼ããä¸ã¤ç®ã§falseã ã£ããäºã¤ç®ã«ãããã«å¦ççµäºãã¨ããæé»ã®äºè§£*1ãå©ç¨ããã¢ãã¦ããªå¤å®ã
ããSERVER_PORT使ãã®ã¿ããã©ãå¥ã«SSLã443以å¤ã ãã£ã¦ããã§ããªãã®ã§ã80çªportãsslã®å¯è½æ§ã ã£ã¦ããããã ãã
以ä¸ã²ãããã«ã¢ãã¦ããªã¡ã¢ã