Some PHP links for the day
PHPBuilder runs a chapter from an APress book on PEAR. The chapter is dedicated to using PEAR authentication modules. Pretty much any site you build nowadays allows the users to register, choose a password, validate a password, send a password out when it’s forgotten, etc.
You use the Auth package to authenticate users in your site. Out of the box, it supports many different ways of authenticating users, including storage in a database, in files, or even by using SOAP calls. You can even write a custom container object that allows you to write your own method to authenticate users.
Donald McArthur over at NewsForge creates a generic reusable PHP calendar template that could be used on any site requiring inputting dates:
My design goals were to create a PHP page that would take as input a querystring value in the form of a Unix epoch number that would represent the beginning moment of a particular date. (I chose the Unix epoch number, which represents the number of seconds that have transpired since the start of January 1, 1970, as that was the data my database SQL statement used as a SELECT criteria.) The script would determine the month and year of that value, and create an array holding a Unix epoch number for the beginning moment for each day in that month. The script would then output HTML to display a calendar, with each date a hyperlink back to the original PHP page, with the associated querystring value for that date.