I'm a novice/beginner. I'm trying to understand why an application that I use in production works just fine running on Apache, but bombs running in PHPEd.
I'm playing with web-cyradm to see if I can make some changes that I'd like. When I bring up the index.php page, it continually redirects..
<?php
if (!defined('WC_BASE')) define('WC_BASE', dirname(__FILE__));
$ref=WC_BASE."/index.php";
if ($ref!=$_SERVER['SCRIPT_FILENAME']){
header("Location: index.php");
exit();
}
?>
That block of code seems to be responsible for the issue. It works just fine running on Linux. I can tell that I never get a session and that somehow, that block of code causes the page to redirect continally. Can someone help me out here? I'm on a 30 day eval
