Large Database Backup is a class to back up large MySQL databases into multiple files. It can list the tables of a given MySQL database, and generate SQL statements to create and insert records with the current values of the table rows, as if it were creating a new database. The class stores the generated SQL statements in files. A full backup process can be split into multiple iterations so as to not exceed the PHP default script execution time limit. Each iteration dumps a limited number of table rows. An iteration can be executed by a script that redirects the page request to itself at the end to proceed to the next iteration.
Site Tools provides several classes for performing several types of operations to search, list, and view files from a directory. It can search for a string within all files in the given directory and sub-directories, list all files in the given directory and its sub-directories, or view all files that are listed in a CSV file on the server. The list of files appears in a form select input. Each file can be viewed in a frame below. The pages in the list can be displayed automatically as in a slide show. The user can browse the files forwards or backwards. Each file can be marked. The name of the marked files is saved in a CSV file.
Change Web Site Mode is a PHP class that can be used to switch the access to sites between test and production versions. Each Web site must have a copy of all files in the production server and in a test server. This class allows the user to switch between the two copies of the site without having to change the URL. It provides a GUI interface for switching between the test mode and production site. The test version may be run in the local machine or in another machine.
MP3 Management can be used to build a catalog of MP3 files in a MySQL database. It can traverse a given directory to find MP3 files. For each MP3 file that is found, it extracts its ID3 tags, including album art, and adds an entry in a MySQL database. The class also extracts 20 second clips of each MP3 file and stores them in a subdirectory named clips. The duration of the clips is configurable. The class is intended to be used with the Id3 Tag Correction and Downloading script, which corrects id3 tags and downloads lyrics, artist biographies, and other information using Web services and other Web sites.
Site Checker can be used to find broken links in Web pages. First, it retrieves the list of all pages of the Web site, either static pages or dynamic pages generated from data stored in a database. Then it checks the links in each of the pages to verify if they are on the list. Links to external sites can also be verified by performing HTTP requests to the remote Web servers to check whether the pages still exist.
Link Searcher is a PHP class that can be used to crawl Web pages to search for given text. It retrieves a given Web page and searches for links contained in it. The new links that are found are added to a queue to be crawled later and so implement recursive searching up to a given depth limit. The class looks for pages with text that match a given regular expression.
Id3 Tag Correction and Downloading is a PHP class that can be used to correct tags of MP3 tags of music with records stored in a MySQL database. It scans a MySQL database table with information about music albums to see which albums do not yet have the associated ID3 tags. The class accesses the Web services APIs of sites like audioscrobbler.com, last.fm, lyricwiki.org, and lyricsfly.com to correct the pending music tags and get other details about the stored music.
Usenet Downloader can be used to retrieve newsgroup articles from NNTP servers. There is a generic NNTP class that can retrieve listings of groups, listing of group articles, and the article headers and bodies. There are other classes that can retrieve listing of groups from several different sites and insert the listings into a MySQL database table. Other classes can retrieve groups stored in the database and retrieve articles of those groups from the NNTP servers.