Saturday, June 23, 2012

PHP Script header cannot send problem solutions

if(!isset($_SESSION["email"]))
{
if(!headers_sent())
{
$strRedirectUrl = $site['url'].'admin/index.php';
header("Location:".$strRedirectUrl);
}
else
{
$strRedirectUrl = $site['url'].'admin/index.php';
?>
location.href = '';
<?php
}
}

No comments:

Post a Comment

Please mention your comments.......