Jump to content

Archived

This topic is now archived and is closed to further replies.

litebearer

Old man confused by isset

Recommended Posts

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...

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
add to your script

[code]echo '<pre>', print_r($_SESSION, true), '</pre>';[/code]

Is it set?

Share this post


Link to post
Share on other sites
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...

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.