note 16383 rejected from function.session-register by zak

From: Date: Sat, 27 Oct 2001 08:55:30 +0000
Subject: note 16383 rejected from function.session-register by zak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-19498@lists.php.net to get a copy of this message
<?php session_start(); function checkLogin() { global $uname, $pword; $fp = @fopen("user.txt"); if ($fp) { $contents = fgets($fp, 4096); list ($un,$pw,$lvl) = split('[|]', $contents); if (($un == $uname) and ($pw == $pword)) { session_register ("uname","pword","lvl"); } } } in this example, i tried both globalizing $lvl and other ways but for some reason $lvl doesnt get registered to the session? and help would be appreciated.

« previous php.notes (#19498) next »