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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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!
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.
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.
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.
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.
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.
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().
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.