Code Library
Select code:
coalesce() — Get the first non-null element from an array.
daysDiff() — Number of days between two dates.
Hawaii State Holidays — Functions for holiday calculations.
stamp2Date() — Convert MySQL timestamp to ANSI date.
getFileExt() — Get the extension from a filename.
getFileSize() — Get the size of a file in meaningful units.
getNewestFile() — Get the name of the most recent file in a directory.
loadUsers() — Extract user data from a text file.
Get INPUT names — PHP page to extract <input> from a web page.
getDomain() — Get the domain name from a URL.
Server Variables — Simple page to display all server variables.
TEXTAREA Tabs — Allow tabs in a <textarea> instead of changing focus.
Database Information — List information on databases available on a MySQL server, tables, fields and processes.
quote() — Escape, quote, and convert data for SQL statements.
Server Variables — Simple page to display all server variables.
getDomain() — Get the domain name from a URL.
truncText() — Get a string truncated to a specific length, preservering words.