WordPress: Best Plugin to improve your website speed in google

Today I wasted many hours to increase my website’s speed in google PageSpeed insights but I could not. I was in red color. But then I found following plugin that surprisingly increased my page speed. And now that website entered in Green on google: Plugin: GZip Ninja Speed URL: https://wordpress.org/plugins/gzip-ninja-speed-compression/ Further I would like to share my […]

WordPress: Best Plugins to migrate website form one hosting to another hosting

Alright! Today I found an awesome, very useful and time saving plugin that can save your a lot of time if you are willing to migrate your wordpress website from one server to remote server. Just install this plugin: Welcome to WP Clone by WP Academy First install this plugin in first server. Take backup and […]

PHP: how to display tweets on a webpage using php?

This simple tutorial will show how to display twitter tweets using custom php. Step 1: Download tweet-php from https://github.com/jnicol/tweet-php whereever you want. Step2: Add following code before the section where you want to display tweets: require_once(‘tweet-php/TweetPHP.php’); $TweetPHP = new TweetPHP(array( ‘consumer_key’ => ‘xxxxxxxxxxxxxxxxxxxxx’, ‘consumer_secret’ => ‘xxxxxxxxxxxxxxxxxxxxx’, ‘access_token’ => ‘xxxxxxxxxxxxxxxxxxxxx’, ‘access_token_secret’ => ‘xxxxxxxxxxxxxxxxxxxxx’, ‘twitter_screen_name’ => ‘yourusername’ )); […]

PHP: How to force user to download file using php?

if(is_file($file_name)) { /* Do any processing you’d like here: 1. Increment a counter 2. Do something with the DB 3. Check user permissions 4. Anything you want! */ // required for IE if(ini_get(‘zlib.output_compression’)) { ini_set(‘zlib.output_compression’, ‘Off’); } // get the file mime type using the file extension switch(strtolower(substr(strrchr($file_name, ‘.’), 1))) { case ‘pdf’: $mime = […]