A short function that checks whether a passed string ends with another passed string, and returns the answer as a boolean value.
Redirect using PHP
A function that redirects the user to the specified URL by sending the appropriate headers or by using JavaScript if the headers were already sent.
Read content of file or URL into a string
Two examples on how to read the content coming from an URL or from a local file into a string, using PHP.
Parsing a Tab Delimited File
This example code shows you how to parse a tab delimited file (or any other character delimited file for that matter), using PHP.
Get the modified date and time of a file using PHP
An example on how to use the filemtime() function to retrieve the last update date and time of a file.
Array of Street Types and their Abbreviations
A PHP array containing the street types / designations and their canonical form / abbreviation, following the USPS standard.
Basic HTTP Server In Java
Create a basic HTTP server in Java that answers browser requests and serves the requested page to the client, using the ServerSocket object.
Writing a file using I/O in Java
This piece of code writes a string of characters to a new text file in order to demonstrate how the Java IO operations work.
An Introduction to Linked Lists
A brief introduction to the concept of a linked list through an example.
Array of States and their Territory Code
A PHP array of US state abbreviations and their corresponding territory code, including the leading zero.