I'm trying to create a small template parser so I can fill my html pages up with data. 
 An example:  <html><head><title>{title}</title></head></html

What I'm trying to do is run through it and replace {title} with an appropriate value. 
 I have tried running ereg_replace("{$var}",$value,$string) and 
ereg_replace("\{$var\}",$value,$string).  Neither work.  They either do nothing or 
produce the error "Warning: invalid content of \{\}".

Any help would be appreciated,
Zack

_____________________________________________________________
Free email provided by ---> http://sect0r.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to