PHP script dies setting key => value
Posted: 29. December 2010 20:51
I've got a foreach loop the takes the session array and parses it into key and value. It works fine online but doesn't locally. Is there something in the config file I should be setting for this?
When I view the page I get this bit at the top
which tells me it's the => that's causing the break. ?
Thanks.
- Code: Select all
foreach($_SESSION as $key => $value) {
$message.="<br>$key = $value";
}
When I view the page I get this bit at the top
- Code: Select all
$value) { $message.="
$key = $value"; } $message.="
Sessions are being unset."; $_SESSION=array(); } if (!isset($_SESSION['siteusid'])) { $_SESSION['siteusid']=$siteid; $_SESSION['level']="admin"; } ?>
which tells me it's the => that's causing the break. ?
Thanks.