PHP

PHP 5.4.0 Has Been Released

PHP 5.4.0 Has Been Released
Date: 
Fri, 02/03/2012

Its great to hear that f PHP 5.4 has been released. 

PHP 5.4.0 Release Announcement

The PHP development team is proud to announce the immediate availability of PHP 5.4.0. This release is a major leap forward in the 5.x series, and includes a large number of new features and bug fixes.

The key features of PHP 5.4.0 include:Read more

Todays date Php

php date
Date: 
Tue, 11/10/2011

I did this in a current site today and thought it was worth jotting down. Its a really good start point in learning Php as it can be displayed using one line of code below.

This will only work on pages if your file is PHP is enabled .php, you can change a HTML page to have a .php extension

 <? print(Date("l F d, Y")); ?> 

 Read more

How to create a CCK image field as a DIV background

CCK drupal snippet
Date: 
Thu, 25/11/2010

Below is a Php snippet for displaying the contents of a CCK image field as a DIV background in a Drupal node.tpl.php file:Read more

Php snippet to display a user name

username drupal
Date: 
Mon, 22/11/2010

A lot of people ask me how to display a user name in a page or a block in Drupal. Its pretty handy and I am adding it here for my own reference as well as yours.

Simply enable the PHP filter on your body field you will need to do this by going to your modules page and enabling the PHP filter under core, this as it says allows embedded PHP code/snippets to be evaluated.Read more

Syndicate content