| Active Users: |
36 |
| Accounts: |
0 |
| Guests: |
36 |
|
|
|
|
|
|
|
Smartest filter/validating PHP code
Looked at Zend and although neat, overkill for my own purposes.
I need more of a validation solution than a filtering anyways.
Meaning I will test for validity and fail to continue if it's bad. I guess, except when validating TEXTAREA in which case it's prolly a lot faster/easier to just strip HTML or convert to entities.
Didn't think of that one until now.
Anyways, smartest, leanest filtering solution...why not just store an array of regex in a hash array and pull that regex into a preg_* and be done with it???
Any other techniques or solutions (other than Zend or Regex) which you feel are worth mentioning?
| Zend Framework Version: |
Unknown
|
| Author Name: |
Hockey
|
| Source: |
DevNetwork Forums
|
| Referred By: |
Zend Framework Tutorials
|
|
|
Rating: 1.00/10 (1 vote cast)
|
|
|
|
|
|
|
|
|