» Snippets

  • » Quick Tips To Know About Mysql Server Timezone

    Last day worked in a project and I required to know what is my current PhpMyAdmin (mysql) server timezone. It's really very important while you are working on a application that worked based on user timezone. So, we need to know SQL server timezone to adjust our server date and time with user local devices date and time.

    Quick Tips 30 Times 14-05-2013

  • » How To Convert String In To Slug Using JavaScript

    Today we are going to learn how to convert string to slug using JavaScript. We have created a custom convert to slug function and it contain 2 parameter and return a slug value.

    Javascript 97 Times 09-03-2013

  • » How To Register Menus For Your Wordpress Theme

    Today we are going to learn how to register menus for your WordPress theme. Most of popular and premium theme have menu setup options and it help user to setup menu options easily from WordPress back-end. But to do this we need to add few lines of code in functions.php page.

    Quick Tips 879 Times 14-02-2013

  • » How To Use Loop In Wordpress

    Today we are going to learn how to use loop in WordPress. Well, "loop" is a very common term in WordPress. Because we need to use this "loop" for load posts and comments. Here goes a loop structure in WordPress.

    Quick Tips 104 Times 21-01-2013

  • » How To Get Header Footer And Sidebar In Wordpress

    Today I'm going to share 3 basic WordPress function about how to load header, footer and sidebar in your WordPress theme. Each WordPress theme contain 3 common files for header(header.php), footer(footer.php) and sidebar(sidebar.php). To load that files WordPress have 3 dedicated functions.

    Quick Tips 172 Times 21-01-2013

  • » 3 Ways To Use If Else Statement In Php

    Today I'm going to show you, how to use if else statement in 3 different ways. You know, if else is one of the most important and frequently used terms in PHP. So, we need t know how to use them properly in different situation in your code.

    Quick Tips 153 Times 21-01-2013

  • » Convert Color Code From HEX To RGB Using PHP

    Hello friends, today I'm going to show you a cool function to Convert Color code from HEX to RGB. Well, most of the time we use directly color text like red, green, yellow and sometimes we uses color HEX code.

    Php 184 Times 04-01-2013

  • » Quick Tips To Improve Web Application Performance

    Web site performance is a great fact for site success. Website performance refers content loading speed. Suppose you have a website with very informative contents, but you're site performance not so good. Then you must loose your visitors and can not gain your desired success. Here some quick tips to improve web application performance.

    Quick Tips 173 Times 12-12-2012

  • » CSS Fixed Footer Support All Broswer

    Fixed footer can play important role of any website. We show our copyright text in footer and sometimes also show sponsor advertisement in footer section. If we make our footer fixed then visitors can see footer content while they scrolling page contents.

    Css 294 Times 11-12-2012

  • » PHP Number Formatting Techniques

    If you are working in PHP and dealing with big numbers and make it more readable to your user then number_format() is a great PHP function that can accomplish your number formatting task. This function takes number as input and number may be in integer or floating point values.

    Php 323 Times 25-11-2012

  • » Quickway To Find Max And Min Value From An Array

    There are lot of techniques to find max and min value from an array. But today I am going to show an Quick way to find max and min value from an array. Hope you like it.

    Php 270 Times 18-11-2012

  • » Quick Drop Down List With 250 Countries

    Country lists is one of the most common element in web form.Suppose you have a registration form, but no country drop down list! . Then it seems incomplete form. But to get user country name from a country list drop down box, you may need to write 250+ option tag in your form element. which is much more boring and painful. To solve your pain, today I am going to present more than 250 countries drop down list. Here goes a wonderful list of handy country list. Just copy/paste and enjoy!

    Quick Tips 328 Times 12-10-2012

  • » PHP Function To Extract Components From An URL

    You want to extract the protocol, domain name, path, or other significant component of a URL. Use the parse_url() function to automatically split the URL into its constituent parts. The parse_url() function is one of most useful URL manipulation function in PHP.

    Php 442 Times 29-09-2012

  • » Easy Way To Parse Comma Separated Item In PHP

    We can easily extract the individual elements of a comma-separated list. PHP have a great function named explode() that makes it a single-step process to separate a comma-separated string list into an array of individual list elements.

    Php 518 Times 28-09-2012

  • » How To Check Codeigniter Version?

    Today in quick tips section, we are going to learn how to check CodeIgniter version. CodeIgniter is one of the most popular PHP framework in current time. Lots of CodeIgniter version has been introduced in last few years and with the changing of version they also improved libraries, plugins, helpers.

    Quick Tips 497 Times 27-09-2012

  • » How To Remove Character From A String?

    Removing characters from a string is most common and frequent activities in PHP. Suppose, You have a long name, but your system does not allow to show more than 6 characters of your name. In this case, you need to keep only first 6 characters from your name. To solve this issue we use substr() function.

    Php 366 Times 26-09-2012

  • » How To Check Empty String Values In PHP?

    trim() function remove white spaces both side from a string. That means if user submit a form with white space then we can easily remove them by using trim function. After that if we check with a conditional expression then our system can easily return a message that, there is no valid character in your submitted string or string is null or empty. isset() function is very useful when we are not exactly sure about string variable is exist of not.

    Php 388 Times 26-09-2012

  • » 4 Popular PHP Function For String Case Conversion

    Lot of cool PHP function are available now for altering strings. From them 4 most popular and useful PHP string functions are strtolower(), strtoupper(), ucwords() and ucfirst().

    Php 601 Times 26-09-2012

  • » Codeigniter Show 500 Server Error On Htaccess Issue In Bluehost

    Sometimes htaccess gives me a lot of pain. Lots of web hosting provider over the internet and they frequently upgrade their server to maintain performance. Main reason of 500 internal server error is misconfiguration in htaccess file.

    Htaccess 948 Times 24-09-2012

  • » JQuery Mobile Silent Page Reload

    We know we can use JavaScript page reloading techniques and they are quiet simple and easy to implement. But when you reload a page then a page blink effect show in your screen, which seems very annoying and application loose it\\\\\\\'s attention to user. Also, jQuery mobile save all pages using AJAX.

    JQuery 676 Times 24-09-2012