Change Php Data Format Snippets

05 December, 2012   

Instead of providing a traditional address to the image, the image file data is base64-encoded and stuffed within the src attribute. Doing so saves a network request for each image, and prevent exposure of directory paths. Please note that IE7 and below are not compatibles with data URIs.

15 November, 2012   

This program has two input checks: one for a blank card to indicate end-of-data, and the other for a zero value within the input data. Either condition causes a message to be printed.

23 October, 2012   

MySQL code example for sorting data in a GRID

05 April, 2015   

A simple PHP script that outputs data into formatted columns.

11 October, 2011   

In the same way you often need to format data being sent from Flash, you sometimes need to format data being received. This function takes a string and removes all spaces from it. Here we use the split method of the String class to split the string into an Array and then call the join method of the Array class to convert it back to a string....

09 February, 2013   

There are websites that will watch a page for you and notify but I didn't really like the way they worked.

Change Date from dd/mm/yyyy to yyyy-dd-mm

Encodes the given data with MIME base64. Base64-encoded data takes about 33% more space than the original data.

05 December, 2012   

The function accept 3 parameters: the data, the csv delimeter (default is a comma) and the csv enclosure (default is a double quote).

26 November, 2015   

Show the currently active processes.

23 December, 2015   

It allows you to add your own fonts on the page. To convert to different formats use this service Font2Web.

This PHP script will get the day of the week from the server date and then display an image (jpg or gif) to match.

03 June, 2013   

Plots a histogram from an external file with the frequency of each bin shown above each bar. The XTick is also the intervals of the histogram.

21 January, 2013   

VB code to add data using access

Note that to add a new column to the query, just add in an input box to the HTML, the PHP generates an insert for each field.

15 November, 2012   

If one of the input values is zero, then the program will end with an error code of "1" in the job control card listing following the execution of the program. Normal output will be one line printed with A, B, C, and AREA. No specific units are stated.

02 June, 2011   

This will check an email, to see if it is in a valid format.

The mysql_fetch_assoc "converts" a row from a table into an associative array. The mysql_insert_array "converts" an associative array into a row in a table.

Handy helper function which parses about any date and returns the same date in MySQL date/time format.

11 April, 2011   

Specifications of the TOPIC database format, a standardized structure for plain text databases that's easy to read and edit in most text editors, and easy to programmatically parse as well.