This is not a question on a specific piece of code.Instead I want to ask general questions.
2) Filter functions. (filter_var,input etc). I use real escape string function and htmlspeciachars against both kinds of injections plus regular expressions.In this case will I need filter functions ?
3 and last) Do you think that "exceptions" are really useful or required while I can simply check for errors for specific cases?