Many Web applications need to execute periodic tasks. Some operating systems come with programs, like cron or at, to execute scheduled tasks. However, under some Web hosting environments these programs cannot be used. Virtual Cron provides an alternative solution that can be used in more restricted hosting environments. It uses files to keep track of the last time when a periodical task was executed. The site Web page scripts can use the class to check these files. The class can tell when it is time to execute a task again. When it is time, the same script can execute the scheduled task without depending on external programs.
uCal is a PHP class that can be used to convert dates between the Hijri and Gregorian calendars. It features the ability to convert dates between Hijri and Gregorian calendars and vice-versa. It is fully compatible with Umm Al-Qura. Dates formatted like the PHP date() function can be returned. English/Arabic formatted Hijri and Gregorian dates and times can be output. Versions of the date() and mktime() functions for Hijri are also provided.
Form Spam Bot Blocker is a PHP class that can generate forms that prevent submission by spam robots without requiring human users to enter special values. It generates hidden inputs for forms that have special values that are verified on the server after the form is submitted to eventually detect whether the form was sent by a spam robot.
PHP Cache Class is a PHP class that caches output generated by PHP files and uses the cached version instead of generating the content again and again. Cache files expire after a specified amount of time. The developer must remember not to cache files that have portions that change dynamically, such as search results, comments, news, files that show the user's name after the user has logged in, etc. Also, as a measure of protection, the directory containing the cache files should be outside the Web root directory or otherwise protected from access by Web clients.
IdealMySQL is a PHP class that provides an interface for working with MySQL databases. It can connect to a database, execute queries on a database, check variable names for validity, and catch errors and email them to the administrator. All error messages are stored in a text file that can be easily edited, and the look and feel of the error output to the user is controlled by a style sheet.
IAM Calendar is a class to display the calendar of a given month in an HTML page. Holidays or other events can be configured to be highlighted in a special way (using CSS styles). The days of the month can rendered with a form checkbox or radio buttons so they can be selected by the user. Rendering of the different calendar elements can be configured using CSS styles. The names of the months and days of the week can be configured to be displayed in a language other than English.