hi
I have some code (written by someone else as part of a template function (template.inc) ) that used to work in earlier versions of PHP3 but now doesn't work (3.0.15 & 4) . [The file template.inc was referenced on php.net some time ago, and the URL in the file is :
http://www.snt.utwente.nl/~auke/template.tgz
though this doesn't exist now.]
code:
if (ereg("[{]{[{}][}]*}",$line, $dt_result)) {
and
$dt_temp=ereg_replace('{{','{',$line);
These lines now give this error :
Warning: Invalid content of {} in template.inc on line xx
Does anyone know how to correct this reg expression ?
Any help would be most appreciated.
Thanks & Regards
Arif