Php Graphics Snippets


06 July, 2013   

Converts a bitmap into an extended meta file object.

19 June, 2012   

Changes the brightness of a bitmap by a given Delta value in range -255..+255.

22 May, 2013   

Example code shows how to draw a Linear Gradient

19 June, 2012   

Adjusts the brightness of a color by a specified amount in range -255..255.

18 February, 2011   

Change Graphics Based on Season

This technical tip shows how to read the image and mark all the barcode regions, for all the recognized barcodes in the image. The barcode region is the part of the image that only contains the barcode itself. In a large image, it is possible that there are other texts or images along with the barcode. Getting the barcode region will separate...

Change Graphics Based on Season

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.

06 May, 2013   

Code example for Month Day Year Dropdown

27 October, 2011   

An example to include another PHP file into a PHP script

27 May, 2013   

Example shows here how to compress CSS with PHP

29 October, 2011   

Here shown an example 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.

04 October, 2012   

Turn a string into a readable url

21 May, 2012   

PHP example for connecting to MySQL

23 October, 2012   

MySQL code example for sorting data in a GRID

29 July, 2015   

Apache code example shows how to remove .php from URL

PHP code example for redirecting from old URL to new URL

You can use a url shortener with Twitter such as tinyurl.com