Php Generate Snippets

This basic snippet will create a random authentication code, or just a random string.

16 October, 2012   

MySQL code to generate random string

11 May, 2013   

Generate CAPTCHA images for form validation without any outside library's or plug-ins

* Code to generate spiral matrix for n elements where n >= 1 * To generate spiral matrix for n elements just * Change the value of MAX to whatever u want :)

C+ source code for Generate a spiral matrix for n elements

Define allowed characters in $s and length for the string in $l

14 May, 2012   

How to generate SYNONYMS SQL

04 December, 2011   

Example of If Statement in python

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).

To generate numbers of the form 2^i * 3^j * 5^k

Sometimes you need to generate passwords for customers automatically when a new account is created. This code allows you choose the desired length and strength for the password and it is very flexible.

09 February, 2013   

Very simple small code to generate random password

06 June, 2012   

This function highlight_string() outputs or returns a syntax highlighted version of the given PHP code using the colors defined in the built-in syntax highlighter for PHP.

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.

06 May, 2013   

Code example for Month Day Year Dropdown

27 October, 2011   

An example to include another PHP file into a PHP script

29 October, 2011   

Here shown an example how to Compress CSS with PHP

27 May, 2013   

Example shows here how to compress CSS with PHP

26 May, 2012   

Allows to perform PHP redirection (must be placed before any browser output).

14 February, 2011   

You'll need a of copy Simple Pie for the include right at the top here.