•  
  •  
  •  
  •  
  •  
  •  
  •  
Username:
Password:
  Forgot password?  Register

Smartest filter/validating PHP code

Title: Smartest filter/validating PHP code
Category: Zend Framework Threads
Clicks: 125
Listing added: Apr 29, 2007
PageRank:
Not available
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?
Author: Hockey
Zend Framework Version: Unknown
Rating
  •  

Rating: 5.00/10 (3 ) 

Comments

 

 


 characters left

captchaPlease input letters you see on the image.
Click on image to redraw.