I am writing a small content management system and would like to allow some very select people to write scripts. Mainly myself and one other programmer.
I would like to have the section of script to exist in the a database along with the page and then when needed be pulled out and run. If there was an error I would not like it to break the entire script.
So which is the better choice eval() or do()? Eval seems to not have the error trapping capabilites that do does.
In reply to To use do or eval by Angel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |