Reconstruct an URL in PHP by concatenating the domain-name, path and query string from three different variables.
Convert JPEG Image To Grayscale
Convert a JPEG to a grayscale JPEG using PHP and the IMG_FILTER_GRAYSCALE type of filter.
Generate Gradient Within Hex Range In PHP
A function that generates an array of hex colors that forms a gradient, starting from a hex color and ending with another hex color. The number of gradient steps can also be defined.
Show Page Load Time In PHP
Using a line of code at the beginning of the file and a function call at the end, you can count the number of milliseconds it took PHP to load the page.
Emulate register_globals Flag As On
How to emulate the insecure, deprecated register_globals flag so that you can access GET and POST keys as PHP variables.
Basic Hit Counter In PHP
A very basic hit counter in PHP; it uses a text file to store the number of hits and displays the number of current hits.
Reveal The Url Behind A Tinyurl
Using sockets in PHP to reveal the path that a tinyurl.com URL really points to by reading the HEAD data.
Find Easter Sunday of any year
The Meeus/Jones/Butcher Gregorian algorithm is used for calculating the Easter Sunday of any given year using C#.
Crop a Picture using C#
A function to which you can pass the picture that you want to crap and the coordinates, and it will return a cropped vesion of the picture as a byte stream.
Get the week number of a given date
The C# method uses the DateTime object to get the week number of a given date. The number returned is dependent on the culture of the target machine.