Best bet is to go to any book store that carries programming books and pick 
up a book on PHP.  There are so many different things that you need to know 
that nobody can mention them all here.  The other option is to go to 
http://www.php.net and read everything the site has.
$var = $value
assigns $value to the variable $var.
$var == $value
tests to see if $var and $value are equal.

Steve

At 07:00 PM 5/8/2002, Chris Knipe wrote:
>Nevermind....
>
>For it sorted...   Does anyone have any reference to any documentation on
>how to use if statements properly?
>
>I know this sounds silly now, but when exactly do you use $var = $value, or
>$var == $value, and all the other operators?
>
>I'd really like to read up on this if someone can point me to a good
>reference... I'm having the same type of situations with Perl as well...
>Maybe it's just be who is stupid here... But hey, I'm trying :)
>
>--
>me
>
>
>----- Original Message -----
>From: "Chris Knipe" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, May 09, 2002 1:43 AM
>Subject: [PHP] Destroying Sessions
>
>
> > Hi all,
> >
> > Need some more help here unfortunately.  This time, I did check the
>manual,
> > and well, I'm not to sure what I'm doing wrong...
> >
> > From a global (shared) script, I start a session....
> >
> > <? session_start(); ?>
> >
> > I register session data, and use them throughout the site
> >
> > <? $_SESSION['something'] = "whatever"; ?>
> >
> > Now, how on earth do I destroy that session?
> >
> > <?
> >   include('../include/functions.inc');
> >   session_unset();
> >   $_SESSION = array();
> >   session_destroy();
> >   header ("Location: /index.php");
> > ?>
> >
> > I've tried all of that, to no prevail, the session remains, and my values
> > registered in $_SESSION['whatever'] still remains??????
> >
> > Any help / pointers, much needed and appreciated.
> >
> > --
> > me
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to