PHP Classes

Packages of Robert Widdick

Recommend this page to a friend!
  All class groups  >  All authors  >  Packages of Robert Widdick (3)  >  Mission progress status  >  Reputation  
Picture of Robert Widdick
Name: Robert Widdick <contact>
Classes: 3
Country: United States United States
Age: 38
All time rank: 809114 in United States United States
Week rank: 195 Up19 in United States United States Up
All time users: 3904
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 M3U Playlist Parser  
Parse M3U playlist files
This class (rewritten from the old M3U Playlist Parser) now features optimized code and is more user friendly (function-wise) than that of the older M3U Playlist parser. You're now able to search through M3U entry titles and locations using multi-(or single) search and case[in]sensitive searching as well. You're able to pull records out that have a play time (in seconds) that are less than, less than or equal to, greater than, greater than or equal to or in between a $START and $END seconds time.

I've also included a (quite long) function that outputs a "pretty" and human-readable format which includes the song titles, locations and track time. You're able to customize the table output (if you use a table) or you can use plain-text output (which isn't pretty at all, mind you). The output of this also includes some "statistics" about the M3U, such as total tracks and combined playlist playing time (HH:MM:SS).

Hope you enjoy this new release, and as always, please contact me if you have any questions, comments or suggestions - as they might show up in future releases!

Notice: This script is not for any commercial usage without my consent. Thanks!

Warning: I have used this script to parse a playlist file of over 6,000 items without any problems. This script processes M3U files FAST! However, I'm not sure how bad it would be if you were to have anything over 10,000 playlist items - but it depends on the system and its configuration, so use with care.

**Notice** This version is incompatible with any of the lesser versions of 2.1.3. Please be sure to update your functions when calling from an object!

**Updated** 02-14-2010 -- Removed BC Math functions for users without access to the functions themselves.
-- Benchmark results:
- 100,000 Entries parsed in 3.186 seconds (with pretty formatting)
- 100,000 Entries parsed in 1.509 seconds (without any output)
-- Benchmarked system: AMD Athlon X2 4200+ @ 2.45GHz, 2GB RAM

  Files folder image PHP Mime Type Class  
Determine the MIME type of a file
This class can be used to determine the MIME type of a file.

If the finfo extension is available it uses it to determine the MIME type of a given file.

If the finfo extension is not available, the class extracts the file name extension and looks up in an array that associates file name extensions to MIME types.

  Files folder image Very Simple Captcha  
Generate images for CAPTCHA validation
This class can be used to generate images for CAPTCHA validation.

It generates an image with a random validation text. The image has some lines and shapes rendered in a different color to obfuscate the text.

The width and height of the image, and the length and the font of the text are configurable details.

The image text is stored in a session variable for posterior validation.

The generated image is served as the current script output in the JPEG format.


  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