During graduation got interested in web technology, to kick start i started reading html, javascript.

But when i started my career i was bit disappointed when i realised javascript won’t work if the javascript is disabled in the browser, so my senior in first company suggested me to always do server side validation using php.

But things changed rapidly, in the current firm we use lot of javascript/ajax applications, according to many surveys of most internet users do use javascript enabled browser.

Smarty is pretty interesting concept to bring liveliness to the static html, where we do dynamic programming in templates. Sometimes i always felt its always better if smarty has functions similar to php, and register_modifier opens up that option where we register php functions that are not available in smarty.

Having server side validation with client side validation is better approach, even the web tech giants like yahoo and google does the same, if you want to notice then try disabling javascript in your browser and open gmail.com or mail.yahoo.com it shows the basic edition of mail.

Well sometimes i came across writting few functions similar to PHP for email validation and URL validation. I always thought why can’t we use PHP in Javascript as much similar finding dynamic behavior in HTML(smarty and other template engines provides that), here is a PHP JS which does the same, its a project aimed porting PHP to Javascript. It has lot of PHP functions being ported to Javascript version.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Simpy
  • StumbleUpon
  • Technorati
  • YahooMyWeb