Open Source Sample Code
-
Determine execution time in PHP
by Gringod
This is based on the ASP script posted by Lio. It will determine the time taken for a php script to execute correct to 0.000000000000001 seconds.
-
How to create XML files
by Edward Tanguay
How to generate XML files in PHP using its new_child function.
-
Create Hashes - MD5, SHA1, SHA256, SHA384, SHA512
by David Cumps
In PHP its a simple task to generate hashes, but in C# it takes a little more work. We'll create a Hash class to simplify the process.
-
Storing / Retrieving pictures from database
by Imthiaz Rafiq
This sample code demonstrates how to save and retrieve pictures from a database using PHP.
-
Executing a .CS file
by David Cumps
Demonstrates how to write a C# program that can "launch" a .cs file and execute it.
-
String Concatenation
by James Crowley
How to join/append two strings together in VB
-
Get metadata on MySQL databases
by Edward Tanguay
An example of how to get metadata - such as all the databases on the server, all of their tables, and the corresponding field information for that table.
-
Accessing COM objects from PHP
by Alt-PHP-Faq
How to load a Windows COM object from a PHP script
-
TAPI Application
by S.S. Ahmed
This is a short application showing you how to create a small telephony application.
-
Replace only the first occurance in a string
by Alt-PHP-Faq
How to replace only the first occurance of some text in a string
-
Getting Started with Database Programming
by gigsv00
This is a conceptual idea of how I start to do database programming. In this article, I had highlighted a few points that become vital to understand for any new comers to do database programming.
-
Large Number Operations
by Eric
What do you do when you want to work with numbers that have a total length of digits that reach into the billions? You sure can't store those in a conventional variable, or perform normal operations on them. This module demonstrates how to perform these.
-
Creating your own GUIDs
by Joseph M. Newcomer
GUIDs are a useful entity to guarantee that you have a unique name for a kernel object, Registered Window Message, clipboard format, or other object that must be guaranteed to be unique. However, there are times when a program needs to create a GUID; for example, a program that writes .h files. This essay tells how I created my own unique IDs.
-
Determine if a variable is numeric
by James Crowley
How to determine if the contents of a variable is numeric
-
A timer without a timer control
by MerrionComputing
Thought this was impossible? Find out how with the AddressOf operator, and a bit of Windows API!
-
Output number with leading zeros
by Alt-PHP-Faq
How to output a number with leading zeros
-
Screen Capture to the Clipboard
by Joseph M. Newcomer
This is a very simple subroutine that illustrates a technique for capturing the bitmap of an arbitrary window, and then shows how to save it to the clipboard.
-
How to Create a Sprite using MFC
by David Nishimoto
This sample demonstarates how to create a bitmap, create a DC in MFC VC++, and then how to tell the DC to draw the bitmap
-
Interacting with TinyPic from C#
by Fernando Sanchez
The following tutorial will demonstrate how to interact with http://tinypic.com, an image mirroring service, directly from a C# application using the WebRobot component.
-
Asynchronous Process Notification
by Joseph M. Newcomer
This example consists of a simple dialog-based application that can launch another application and have the GUI remain alive while the launched process runs, instead of just blocking and being non-responsive.