Php String Snippets


09 February, 2011   

Class to back up entire databases and email them out, or individual tables.

This function is used to reverse an integer array. For example, if the array is {1,2,3,4,5}, these functions will return an array like {5,4,3,2,1}. The user needs to pass in a pointer to the array and the size of the array, and the function will return a pointer to an array in the reverse order.

18 February, 2013   

Brute-force calculation of any date. Includes some very tricky rules for modern-day Gregorian calendar.

02 April, 2017   

Last name matches the user input and returns their phone and email information

24 July, 2016   

Dynamically add form fields to your forms.

24 August, 2011   

When you are writing dynamic link libraries and need to control the loading and unloading of a DLL, or if you want to initialize your DLL when it is loaded, you can have a function called DllMain do your initialization. Windows calls the DllMain function of a DLL in four instances: 1) When a process attaches the DLL 2) When a thread attaches...

28 March, 2011   

When you are writing dynamic link libraries and need to control the loading and unloading of a DLL, or if you want to initialize your DLL when it is loaded, you can have a function called DllMain do your initialization. Windows calls the DllMain function of a DLL in four instances: 1) When a process attaches the DLL 2) When a thread attaches...

02 March, 2014   

Delphi code example to get process memory usage

16 April, 2011   

There are times when you need to split a large file into several smaller ones (for whatever the purpose is). The following two methods use Delphi TStream objects to break a file into several files with predefined size; and to merge those files back to the original.

19 November, 2013   

General purpose converter program for conversion between any two number systems. As long as there is more than one number system in use, conversion of numbers from one system to another is important. By this program you can convert number systems with radix more than 16 also.

General purpose converter program for conversion between any two number systems. As long as there is more than one number system in use, conversion of numbers from one system to another is important. By this program you can convert number systems with radix more than 16 also.

22 February, 2016   

C/C++ source code for euler approximation method

31 October, 2011   

It is a class file which can export to excel. simply call the function and give sql Query and sql connection.

28 April, 2011   

Over the years I have made quite a few software programs in Delphi, and inevitably I have also come up with many useful functions. Most of them I have never published on the Internet before, now I would like to list on blog. Part 1 are functions for managing integer or real numbers, they were written very early in 1997.

21 January, 2015   

Cool script changes your SELECT elements into a Select/Combobox element. Works in Firefox and IE 6+.

26 June, 2014   

Cool script changes your SELECT elements into a Select/Combobox element. Works in Firefox and IE 6+.

10 November, 2012   

Visual Basic code example for creating a Global Hotkey (active throughout Windows)

11 September, 2014   

Code to display the current time as a .PNG image.

26 December, 2012   

Email regex validation with MX check and communication. Sample code included. Returns bool valid code, bool condition code and str message.

30 December, 2010   

Class to back up entire databases and email them out, or individual tables