Tips to Securing your PHP Application

Now a days PHP Language is very popular among developers to develop large applications like facebook etc. So here I am going to tell how to secure your PHP applications in a simple steps Disabling Remote URLs for File Handling Functions File handling functions like fopen, file_get_contents, and include accept URLs as file parameters … Read more

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

Tips to Speed Up your PHP Website/Application

Your website acts as a communication interface between your office/organization and your customers/visitors/users.  Slow loading websites causes users to close the webpage. Slow speed websites are used in google ranking algorithms . So here I am going to tell how can you make your website faster using simple php tips … Read more

Multi Language Unicode support in PHP

Hi guys, Now I am going to tell how to add multi language support for your website Step 1: Create a header with charset utf-8 with the following code and add this code into your header file [php]header(‘Content-Type: text/html; charset=utf-8’);[/php] Step 2: [php] // Create an array of names: $names … 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

Fetch / embed videos from url using PHP and Jquery

Please check my new updated post – Facebook Style embed videos from url – http://w3lessons.info/2013/05/25/facebook-style-youtube-video-vimeo-video-soundcloud-audio-url-expander-with-jquery-php/ In our daily life web developers are facing problem like how to embed videos from url. Here I am going to share How to fetch videos from major sites like youtube, vimeo, dailymotion, yahoom google , … 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

How to find the text in string using PHP

Hi guys here I am going to share how to find a text inside a particular given string by using PHP here is the code $string_t0_search = “PHP”; $paragraph = “I love writing PHP code.”; if(strstr($paragraph,$string_to_search)) { echo “found it.”; } else { echo “not found.”; } strstr() is php … 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