Monthly Archives: November 2015

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 …

Read More »

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 …

Read More »

ffmpeg: how to convert .mov file to .mp4 format using php?

Following simple ffmpeg command can be used to convert video format from .mov to .mp4 exec("ffmpeg -i 1.MOV -vcodec copy -acodec copy out.mp4", $out);  

Read More »

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' => …

Read More »

PHP: How to generate thumbnail from a video using ffmpeg withPHP ?

$video = "your_video.mp4"; $output_file = "thumbnail.jpg"; exec("ffmpeg -i $video -ss 00:00:14.435 -vframes 1 $output_file", $out);  

Read More »

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))) …

Read More »