I am trying to work with a very simple templat ing kind of system which
1:fopen() a local .tpl file
2:str_replace <!--links1--> with some content
I can do the above without a problem, but I would like to extend the above and need your help there...becaues I think I will need some RegEx...and I suck at RegEx's.Plus I would like your input as this is something i have not done till now, but you more experenced guys might have....
1: Basically, I want to be able to specify how many records to fetch like so
then i can query the db accordingly to fetch 25 records....
2: I would like to have categories like so:
And here are some cartoons:
Or if you prefer full movies:
so I guess I will need a regex that can check the file and see if categories exist according to the array, eg:
if <!--cartoons 23--> is found then
cartoons =>"23" // the number of cartoons to query the db
These are just my ideas....I would appreciate any comments you have or if you have any arguements why they are not good please tell me.
Do you think I will have a problem if the .tpl files are big? (eg: >= 90kb)
Regex will be too slow...
Mag, you're too ugly... :-)