//force redirect to secure page if($_SERVER['SERVER_PORT'] != '443') { header('Location: https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); exit(); }
'개발 > php' 카테고리의 다른 글
Read PDF and Word DOC Files Using PHP (0) | 2011.12.21 |
---|---|
Send Files via FTP Using PHP (0) | 2011.12.21 |
Force Secure (SSL) Pages With .htaccess (0) | 2011.12.21 |
PHP Force Download (0) | 2011.12.21 |
PHP Headers and Popular Mime Types (0) | 2011.12.21 |