Top 5 Free PHP & Mysql Cheat Sheets

1. PHP Cheat Sheet  The AddedBytes cheat sheet above covers multiple php topics such as functions list and regular expressions. 2. Blue Shoes – PHP Online Cheat Sheet If you would rather not download a php cheat sheet, BlueShoes has provided an online php cheat sheet available for you to … Read more

10 Main Features in PHP 6

Now a days PHP 6 is a very popular term among all php developers. Also several books in the market have already written about PHP 6 such as PHP 6 and MySQL 5 for Dynamic Web Sites: Visual QuickPro Guide (3rd Edition) (link). Ten Main Features in PHP 6 are as … Read more

Removing last comma in a string – PHP

Hi guys, Here I am gonna share how to remove the last comma in a string by using php rtrim function. The rtrim() function will remove whitespaces or other predefined character from the right side of a string. Syntax rtrim(string,charlist) Example : $text_with_comma = “1,2,3,4,5,6,7,”; $removed = rtrim($text_with_comma, ‘,’); Output … Read more

New features in PHP 5.4 version

The process to release PHP 5.4 is moving on. As you probably know, the updates that were intended for postponed PHP 6 were added to PHP 5.4.0 instead, so now PHP includes a huge set of new language features and removes several legacy behaviors. Because of that I created a list of … Read more

How to calculate distances in PHP

Here is a very handy function, which calculate the distance from a point A to a point B, using latitudes and longitudes. The function can return the distance in miles, kilometers, or nautical miles. [php][file]http://w3lessons.info/wp-content/uploads/2011/12/calculate_distance1.txt[/file][/php] Usage Using the function is pretty simple: All you need to do is to call … Read more

Generate Dynamic Favicon in PHP

Gmail has just launched small but really useful feature in Gmail Labs. Dynamic Favicon showing unread email counts directly in your browser tab icon. If your browser window has lots and lots of tabs open at anytime, this might be really a wonderful feature that lets user know of any unread item. … Read more

Built-in Web Server Environment in PHP 5.4

Well, here is some really good news for the PHP Development community. Till now (as of PHP 5.3) all developers had to set up a web-server environment such as Apache in order to test all their PHP codes. Not only this, apart from installing the server environment developers also have … Read more