» tagged pages
» logout

sorted by: recent | see : popular
Content Tagged with User:marc + License:BSD

Payjacks, an Object Oriented PHP/Ajax Web Application Framework

Payjacks is an object oriented PHPAjax web application framework I’ve written to help write robust and organised web applications. It was designed to require a minimal amount of effort to get your own web application up and running, while helping with such tasks as accessing a (MySQL, currently) database or providing a framework for sending asynchronous Ajax requests back to the server.

Payjacks uses many of the new object-oriented features in PHP 5 to do its work, and handles most of the details required to run a robust web application.

StripTags

StripTags is a PHP5 class designed to replace PHP’s strip_tags function. It’s primary raison d’être is to help prevent XSS attacks on your site when you allow users to post content that is shown to other users.

It has three key features that make it stand apart from PHP’s native strip_tags:

  • It offers full control over the set of tags allowed and which attributes a tag may have. You can allow an <img> tag, but only choose to allow src and border on that markup, prohibiting potentially more dangerous attributes such as style, etc.
  • It decodes Unicode-encoded strings to look for script injection this way.
  • It fully supports UTF-8 encoded input, and will not mangle it as it does its processing work.

The most recent version of StripTags is 1.0.