How to improve web page speed in Mobile

There are several benefits of website page speed optimization. Fast sites rank better in search engines. Google has specifically stated that one of their ranking factors is site performance, especially for mobile users. Speed optimization reduces server load. A fast website increases conversions. Fast page loads make happy customers, and happy customers buy more. To improve page speed in mobile, please follow below very easy steps before make website live. …

Continue reading

How to Get the Length of an Object in JavaScript

Everything in JavaScript is an Object. You can simply use the Object constructor in JavaScript to create an object or you can define a string object, an array object and add properties and values to it. Sometimes we require to know the length of an object for any specific reason, there is a simplest and quickest way to get the length of a given object in JavaScript is by using …

Continue reading

Get only URL of the Previous and Next Post in WordPress

When we want to configure links between a blog’s next and previous pages, there is absolutely no function to return ONLY the URLs of the next and previous pages. To save the time below simple thing will help. To return the URL of the previous page, use the following php code: To return the URL of the next page, use the following php code: To use them, simply echo the …

Continue reading

How to get week dates from week number and year

In this tutorial I will show you how to get week dates from week number and year. We will calculate ISO week number (1-53) and represent the start of the week “Monday”. There is a setISODate() method with DateTime extension that accepts the year (4-digit year) and ISO week number. Example of get week dates from week number and year The output of above code is following:  

Copy data from one column to another column in MySQL

In this tutorial I will show you how to copy data from one column to another column in same table in MySQL. There is a simple query to update record from one to another column in MySql. Most of the time we just need to copy a particular record from one table to another but sometime we need to copy the whole column values to another column in same table. …

Continue reading

How to capture screenshot of website from URL in PHP

In this tutorial, I will show you how to capture screenshot of any website from URL in PHP. There are so many third party APIs are available to capture screenshot of the website using PHP script. In the following example, I am using Google API to capture screenshot from given url. You can easily capture the screenshot using Google APIs. There are many reason to capture screenshot of website to …

Continue reading

Main differences between InnoDB and MyISAM

Most commonly used storage engine in MySQL are MyISAM and InnoDB. The default storage engine chosen by MySQL database is MyISAM. There are some advantages and disadvantages of these storage engine according to application needs. Main differences between InnoDB and MyISAM MyISAM does not support transactions by tables while InnoDB supports. InnoDB does not support FULLTEXT index while MyISAM supports. Performance speed of MyISAM table is much higher as compared …

Continue reading