30 January 2010 - 13:59:47 -
Team Louish
I'm not sure if this will work or not, but you can try
if(@$_SERVER['HTTPS']!='on'){
If that doesn't work, you, you can turn off error reporting at the top of your php file, then turn it back on after the command. (I'm not sure if this is the best way, and I'm not even sure it will work, so if you test it and it doesn't work, please let me know so I can update the blog)
<?
error_reporting(0);
// FORCE HTTPS ON THIS PAGE
if(!ISSET($_REQUEST[force])){
if($_SERVER['HTTPS']!='on'){
header("Location: https://www.yourdomain.com{$_SERVER[REQUEST_URI]}");
exit;
}
}
// FORCE HTTPS ON THIS PAGE
error_reporting(-1);
?>
Also, what file is the log being written to, I'll check mine to see if I'm getting the same error.
|