|
Posted by Alvaro G Vicario on 05/10/05 13:47
*** Sa wrote/escribió (Mon, 09 May 2005 21:51:46 GMT):
> session_start();
>
> $f=fopen("count","rb");
> $count = fread($f,5000);
> fclose($f);
>
> if(session_is_registered($count)){
> $count = $count + 1;
> }
> session_register("count");
You are using deprecated functions. You'd better read and write session
data using the $_SESSION associative array.
<?
session_start();
.....
if(isset($_SESSION['count'])){
$_SESSION['count']++;
}else{
$_SESSION['count']=0;
}
?>
--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
Navigation:
[Reply to this message]
|