lifetimes
02-12-2007, 10:58
Hiện tại em đang mắc một vấn đề mà không tìm ra hướng giải quyết.
em có đoạn mã sau :
function load_ip()
{
if (isset($this->ip))
{
return;
}
$tmp = @file_get_contents($this->ipinfo);
$this->ip = @unserialize($tmp);
if (!is_array($this->ip))
{
$this->ip = array();
}
}
function save_ip()
{
if (isset($this->ip))
{
$tmp = serialize($this->ip);
$fh = fopen($this->ipinfo, 'w');
fwrite($fh, $tmp);
fclose($fh);
@chmod($this->ipinfo, 0777);
return true;
}
return false;
}
Em có thông tin của member qua cách sử dụng mysql_query mysql_result
và member của em là :
$Mutilhost_newuser
Anh chị cho em hỏi làm thế nào để thay vì ghi ip thành ghi account của member ?
Cám ơn các bạn đã đọc bài này !
em có đoạn mã sau :
function load_ip()
{
if (isset($this->ip))
{
return;
}
$tmp = @file_get_contents($this->ipinfo);
$this->ip = @unserialize($tmp);
if (!is_array($this->ip))
{
$this->ip = array();
}
}
function save_ip()
{
if (isset($this->ip))
{
$tmp = serialize($this->ip);
$fh = fopen($this->ipinfo, 'w');
fwrite($fh, $tmp);
fclose($fh);
@chmod($this->ipinfo, 0777);
return true;
}
return false;
}
Em có thông tin của member qua cách sử dụng mysql_query mysql_result
và member của em là :
$Mutilhost_newuser
Anh chị cho em hỏi làm thế nào để thay vì ghi ip thành ghi account của member ?
Cám ơn các bạn đã đọc bài này !