Check user function syntax
Posted: Thu May 20, 2010 5:41 pm
Hallo, i'm Italian and my english is very poor ... i hope you can understand me.
I have some functions built by another programmer, these functions can be called from an admin panel in a textbox (used by secretaries .. nice secretaries) who can fail the parameters or the name of the function.
I want to control if the function written by the user is right and can be saved in the database.
Can anyone help me? I've tried to catch the errors from the eval way, but i discovered that is impossible! ;-(
Thanks at all
Marco
I have some functions built by another programmer, these functions can be called from an admin panel in a textbox (used by secretaries .. nice secretaries) who can fail the parameters or the name of the function.
I want to control if the function written by the user is right and can be saved in the database.
Can anyone help me? I've tried to catch the errors from the eval way, but i discovered that is impossible! ;-(
Thanks at all
Marco