PHP Classes

Packages of Mariusz Kaczmarczyk

Recommend this page to a friend!
  All class groups  >  All authors  >  Packages of Mariusz Kaczmarczyk (2)  >  Mission progress status  >  Reputation  
Picture of Mariusz Kaczmarczyk
Name: Mariusz Kaczmarczyk <contact>
Classes: 2
Country: Poland Poland
Age: 44
All time rank: 141336 in Poland Poland
Week rank: 195 Up4 in Poland Poland Up
All time users: 2160
Week users: 0
 
  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z  
  Files folder image lib_text2html  
Parse and process text and HTML to clean up
Process input HTML code.

Features:

- Parses input text, get HTML tags information;
- Removes unwanted HTML tags (configurable whitelist/blacklist);
- Removes unwanted HTML tag attributes depending on their name/value;
- Formats all HTML tags/attributes as lowercase/uppercase;
- Detects URLs in text and convert to HTML links;
- Encodes HTML special characters to entities, similar to PHP's built-in functions but more configurable;
- Decodes HTML entities (named and numeric) to the corresponding unicode characters (to avoid the problem of double entity encoding);
- Uses additional map file to decode unknown HTML entities;
- Support UTF-8 and ASCII/ISO-8859-1 charsets for HTML entities decode;
- Obfuscates properly writen e-mail addresses using HTML entities;
- Converts newline characters to <br />\n;
- Strips the texts in HTML comments out;
- Replaces arbitrary strings in text (array search/replace mapping).

You can pass the input text for every command individually, or once for the constructor to be chain-processed.

Default process settings (tags and their attributes lists) should be acceptable for most sites.

  Files folder image mk_db_session  
Store and retrieve session variables in database
This class can be used to store and retrieve session variables in an SQL database.

It can be used as a replacement of the PHP built-in session management extension, but it does not depend on that extension.

It uses the PEAR::DB API, so it can work with different types of database.

It can create a new session, if one does not exist.

It can also add, remove session variables and set and get their values.


  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z