There are a few reasons why you may want this, in some applications, for example, you may want to ask the user if he wants to save the work before closing. You can easily do this by handling the form’s Closing event.In the following example we stop a form named Form1 from closing when clicking the ‘X’ shaped button: […]
How do I change the timeout limit for my PHP code?
If you would like to overwrite the script execution timeout limit defined in php.ini, you can do that directly from your PHP code using the following line: // Set it to no-limitset_time_limit(0); Of course you can as well set it to any time limit in seconds. The default time limit is 30 seconds.
Backup mysql data using PHP in Windows
How to backup mysql data using PHP in Windows XP, 2000, NT
Drop-down list of US states
A complete list of the 50 US states alphabetically ordered, that can be used in any HTML page. The value for each state is the two letter abbreviation.
Convert Color Images to Gray Images
The algorithm that can convert a color image to a gray image.
Chess Game In Java
A fully functional chess game in Java, without an AI or disallowing moves that are considered to be illegal according to the rules of chess.
Basic file based hit counter
Very basic hit counter based on a plain text file, built using PHP.
Find out where a TinyUrl.com url points to
This PHP source code uses sockets to retrieve the URL that TinyUrl.com points to, without you having to actually access the URL.
List the content of a directory/folder using PHP
With a few lines of code and a while loop you can list the content of a directory on both Unix and Windows machines.
Calculate the age in years using PHP
A PHP CalculateAge() function created by applying the logic we used previously in C# to calculate the age from a given birth date.