Nov 26, 2007 #1 Sleidia Technical User May 4, 2001 1,284 FR Hi guys, I need to know what is the fastest/best way to replace a template's custom tags with its content. It's for a CMS. Until now I was using str_replace but I wonder if there is a better way. Thanks for the help
Hi guys, I need to know what is the fastest/best way to replace a template's custom tags with its content. It's for a CMS. Until now I was using str_replace but I wonder if there is a better way. Thanks for the help
Nov 26, 2007 1 #2 jpadie Technical User Nov 24, 2003 10,094 FR str_replace is ok. ideally with an array of values if you're going to be doing more than one replacement. alternatively you could use variables with php tags. I have not tested either method by benchmarking them. If input parameters are provided via GET method, caching will speed things up significantly. Upvote 0 Downvote
str_replace is ok. ideally with an array of values if you're going to be doing more than one replacement. alternatively you could use variables with php tags. I have not tested either method by benchmarking them. If input parameters are provided via GET method, caching will speed things up significantly.
Nov 27, 2007 Thread starter #3 Sleidia Technical User May 4, 2001 1,284 FR Thanks for the info Upvote 0 Downvote