Zend - The PHP Company




Code Gallery: yaragn1


Logic Template Engine  

Type: class
Added by: yaragn1
Entered: 25/03/2001
Last modified: 03/12/2000
Rating: - (fewer than 3 votes)
Views: 5184
A Parser Class that Parses special template files. It examines and replaces text that is enclosed in a logic tag. The V2 includes logic support with inline logic statements. It also includes logic comparison, nestled conditional and file repitition (row) abilities. Allows seperation of design and development, ideal for larger websites.


Secure Memorable Password Generator  

Type: code fragment
Added by: yaragn1
Entered: 18/09/2001
Last modified: 31/10/2000
Rating: **** (5 votes)
Views: 7984
Creates a password of the form Word(Number)Word(..NumberWord..)


Simple Birthdate-to-Age-at-Given-Or-Current-Date Conversion function  

Type: code fragment
Added by: yaragn1
Entered: 15/07/2001
Last modified: 07/12/2000
Rating: - (fewer than 3 votes)
Views: 7100
Simple Birthdate-Age function. Given three parameters (month, day, year), it will return a correct age as an integer, doesn't rely on Timestamp.

You can give it another three parameters as the date to compare it to, i.e. it will return the age at a given date. Presumes current date.

For sanity if given two-digit years presumes date was in 20th century. Hope you find it useful. Not exactly rocket science.


Spider-safe index.php/URL/decoding  

Type: application
Added by: yaragn1
Entered: 28/08/2001
Last modified: 08/12/2000
Rating: ***** (6 votes)
Views: 15924
Spider-safe index.php/URL/decoding. See John Coggeshall's excellent example of this.




Search