litebearer Posted June 6, 2006 Share Posted June 6, 2006 I used an 'install package' to install apache/php/mysql on my system (WIN XP) at home.I used the EXACTLY identical 'install package' to install apache/php/mysql on my system (Same verion of XP as at home - all updates and patches are identical) at the office.I did NOT change any of the ini settings on either system so they too should be identical. (I downloaded the 'package' to my thumb drive and installed both systems from the same thumb drive).The Problem:when this script is run at home, it echos out [!--coloro:#FF6666--][span style=\"color:#FF6666\"][!--/coloro--]Claims to be set[!--colorc--][/span][!--/colorc--].when I run the identical script at my office it echos out [!--coloro:#FF6666--][span style=\"color:#FF6666\"][!--/coloro--]Says not set[!--colorc--][/span][!--/colorc--]if I put an exclamation mark in front of isset, then they reverse their ouptuts.Why????[code]if (isset($_SESSION['yesitis'])) { echo "Claims to be set";}else{ echo "Says not set";}[/code]Thanks,Lite... Quote Link to comment https://forums.phpfreaks.com/topic/11370-old-man-confused-by-isset/ Share on other sites More sharing options...
Caesar Posted June 6, 2006 Share Posted June 6, 2006 Your first mistake, was running it on Windows. [img src=\"style_emoticons/[#EMO_DIR#]/laugh.gif\" style=\"vertical-align:middle\" emoid=\":laugh:\" border=\"0\" alt=\"laugh.gif\" /] Sorry, J/K (Kind of :-P)...ahem. *Clears throat* You may proceed. Quote Link to comment https://forums.phpfreaks.com/topic/11370-old-man-confused-by-isset/#findComment-42619 Share on other sites More sharing options...
Barand Posted June 6, 2006 Share Posted June 6, 2006 add to your script[code]echo '<pre>', print_r($_SESSION, true), '</pre>';[/code]Is it set? Quote Link to comment https://forums.phpfreaks.com/topic/11370-old-man-confused-by-isset/#findComment-42628 Share on other sites More sharing options...
litebearer Posted June 7, 2006 Author Share Posted June 7, 2006 Thank you!.Your test lead me to see the error of my thinking. Too much wine and tight swim goggles can do that.I was clicking thru too fast and completely missed the fact that it was in fact doing things properly, I simply was in error.Thanks again.Lite... Quote Link to comment https://forums.phpfreaks.com/topic/11370-old-man-confused-by-isset/#findComment-42652 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.