PHP Classes

little mistake in the class?

Recommend this page to a friend!

      Easy HTML Template Engine  >  All threads  >  little mistake in the class?  >  (Un) Subscribe thread alerts  
Subject:little mistake in the class?
Summary:ereg_replace -> eregi_replace
Messages:2
Author:Kisol Kiss
Date:2007-12-27 23:02:53
Update:2008-01-02 03:28:18
 

  1. little mistake in the class?   Reply   Report abuse  
Picture of Kisol Kiss Kisol Kiss - 2007-12-27 23:02:53
After I changed in
function generateTpl()
{
$this->CONTENT = file($this->TPLFILE);
$this->CONTENT = implode("", $this->CONTENT);
while (list($key, $val) = each($this->TAG)) {
$this->CONTENT = ereg_replace($key, $val, $this->CONTENT);
}
}

ereg_replace to eregi_replace it suddenly worked!

  2. Re: little mistake in the class?   Reply   Report abuse  
Picture of Fery Putra Tarigan Fery Putra Tarigan - 2008-01-02 03:28:18 - In reply to message 1 from Kisol Kiss
to avoid wrong typing on variabel i think it will be better if we use ereg_replace because if we use eregi_replace it doesn't case sensitive.
thank's for announce.