Monthly Archives: January 2012

Php: geocoding

January 31, 2012
By

Name: Google Geo Coding Author: Syed Sumair Zafar Description: This class can get the coordinates of an address using the Google Maps API. It can send an HTTP request to the Google Maps API Web server to retrieve the geographic coordinates of a given address. The class parses the results and returns an array...

Read more »

Php: mail template

January 30, 2012
By

Name: mail_class Author: Garefild Description: This class can send e-mail messages to many users using templates. It can read a template file that defines the message body. The class can replace the template variables and send the processed template as separate e-mail messages to the each of the recipients. URL: http://www.phpclasses.org/package/7302.html Support forum: http://www.phpclasses.org/discuss/package/7302/

Read more »

SQL: import tab delimited file (.txt)

January 29, 2012
By

Data that are ready to be loaded to the staging database are saved as a tab delimited text file (.txt) and imported to database: LOAD DATA INFILE ‘raw_symptom.txt’ IGNORE INTO TABLE symptom_dimension FIELDS TERMINATED BY ‘\t’ OPTIONALLY ENCLOSED BY ‘”‘ LINES TERMINATED BY ‘\r\n’ IGNORE 1 LINES;

Read more »

SQL: added command to show matches by regex or regular expression

January 29, 2012
By

Noisy data, inconsistent or irrelevant data, and duplicate data are reported with the SQL command: … WHERE symptom_name IS NULL OR t.treatment_name = “” OR t.treatment_name REGEXP “|||||| |||||| ]”)

Read more »

Php: upload validation

January 29, 2012
By

Name: Easy Upload Class Author: Piotr Description: This class can Validate and process files uploaded via forms. It can check the MIME type of the uploaded file against a list of allowed MIME types, check if the file does not exceed a given length limit, and check if the file is a valid upload....

Read more »

Php: easy page pagination

January 28, 2012
By

Name: Easy Paginator Author: hanzen Description: This class can generate links for splitting listings in multiple pages. It takes as parameters the total number of entries in a listing, the limit of entries to show per page and the number of the current page. The class can generate a navigation bar with links to...

Read more »

Php: bk tree

January 24, 2012
By

Name: bkTree Author: Brian Description: This class can insert and search text in a Burkhard-Keller tree. It takes a text string as base term and can insert other terms in a Burkhard-Keller tree consider their Levenshtein distance value relative to the base term. The class can also query the tree to find similar terms...

Read more »

Php:Text to image

January 24, 2012
By

Name: Image Font Author: Arturs Sosins Description: This class can render images with text using graphics as fonts. It takes a text string and creates an image on which the characters of the string are displayed using separate image files to render each character. The text may be aligned to the left, right, center...

Read more »

Php: captcha and you are human

January 24, 2012
By

Name: Are You a Human Author: Tyler Paxton Description: This class can be used to perform CAPTCHA validation presenting challenges to users provided by the AreYouAHuman service. It can send HTTP requests to the AreYouAHuman Web service API to retrieve HTML to present game challenges to the users. The class can also send another...

Read more »

Php:Text to image

January 23, 2012
By

Name: Image Font Author: Arturs Sosins Description: This class can render images with text using graphics as fonts. It takes a text string and creates an image on which the characters of the string are displayed using separate image files to render each character. The text may be aligned to the left, right, center...

Read more »