Author: Dinesh Belkare

Author: Dinesh Belkare

Create and download excel file or report in php
August 14, 2015 Uncategorized Dinesh Belkare

First of all download excel-report.zip and extract it. You will find index.php in root and one more folder. Open index.php and take a look at the code. Code itself is self descriptive and well commented. You can add column heading and records. You can also add color in particular cell or entire row. If you

Read More
Integrate WhatsApp share in web application
July 9, 2015 Uncategorized Dinesh Belkare

First of all download whatsapp-share.zip and extract it. You will find index.html in root and three more folders. Open index.html. Look for the anchor tag.There are two custom attributes “data-text” and “data-link”. Value of “data-link” is the link which you want to share on WhatsApp. Value of “data-text” is short description about the link. Host

Read More
PHP code to get photos from facebook album
July 9, 2015 Uncategorized Dinesh Belkare

Well,It is very easy.You need to follow few steps as given below. Create a facebook application by visiting developers.facebook.com. You will get “App ID” and “App Secret” keys. Now download facebook-album-photo.zip and extract it. Open index.php file and put credentials obtained in step1. Now visit your index.php and login using login link. You will see

Read More
Simple php script for facebook keyword search
June 29, 2015 Uncategorized Dinesh Belkare

Create a facebook application by visiting developers.facebook.com. You will get “App ID” and “App Secret” keys. Now download facebooksearch.zip and extract it. Open src/config.php file and put credentials obtained in step1. Also enter callback URL.Callback URL is where your application will redirect after successful login. Now visit your index.php and search for keywords.

Read More
Page updated but Facebook showing old page contents
June 22, 2015 Uncategorized Dinesh Belkare

Facebook not fetching new page contents You might be using facebook for your website promotion. Sometimes you might have experienced problem while re-fetching your updated page. Facebook shows old image or old page contents. This is it’s normal behaviour.Facebook uses cache. When you post any URL for first time,it is cached in facebook. Later, when

Read More
Simple php script for twitter hash tag search
June 18, 2015 Uncategorized Dinesh Belkare

Twitter hash tag search is now being most widely used in many organizations. To integrate twitter hashtag search into your application follow the below steps. Create twitter application by visiting create new twitter app. Put your application name,description and website url in respective fields.Callback url is not necessary for our application. Select “Yes,I agree” at

Read More
ffmpeg add or embed text into image on iis or xampp server
June 18, 2015 Uncategorized Dinesh Belkare

Download video_processing.zip and dejavu-fonts-ttf.tar.bz2 and extract it.Note- copy both the files in your project directory. We are going to use php exec() function to execute commands related to image processing. C:\>ffmpeg -i inputimage.png -vf drawtext=”fontfile=ttf\DejaVuSerif.ttf: text=’Dinesh Belakare’:fontsize=70:fontcolor=red:x=700:y=925″ outputimage.png In the above code replace “ffmpeg” with absolute path (i.e C:\directory\ffmpeg).Also replace inputimage.png and outputimage.png with their

Read More
ffmpeg add or embed text into video on iis or xampp server
June 11, 2015 Uncategorized Dinesh Belkare

Download video_processing.zip and dejavu-fonts-ttf.tar.bz2 and extract it.Note- copy both the files in your project directory. We are going to use php exec() function to execute commands related to video processing. C:\>ffmpeg -i inputvideo.mp4 -vf drawtext=”fontfile=ttf\DejaVuSerif.ttf: text=’+919987688035′:fontsize=70:fontcolor=red:x=700:y=925:enable=’between(t,61.6,78)'” outputvideo.mp4 In the above code replace “ffmpeg” with absolute path (i.e C:\directory\ffmpeg).Also replace inputvideo.mp4 and outputvideo.mp4 with their absolute

Read More
Htaccess code to enable Leverage browser caching
May 26, 2015 Uncategorized Dinesh Belkare

############################### #ENABLE BROWSER CACHING START ############################### ExpiresActive On ExpiresByType text/html “access plus 1 month” ExpiresByType image/gif “access plus 1 month” ExpiresByType image/jpeg “access plus 1 month” ExpiresByType image/png “access plus 1 month” ExpiresByType text/css “access plus 1 month” ExpiresByType text/javascript “access plus 1 month” ExpiresByType application/x-javascript “access plus 1 month” ExpiresByType image/x-icon “access plus 1

Read More
Htaccess code to enable gzip compression
May 26, 2015 Uncategorized Dinesh Belkare

############################### #ENABLE GZIP COMPRESSION START ############################### SetOutputFilter DEFLATE AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/x-javascript application/x-httpd-php BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip Header append Vary User-Agent env=!dont-vary ############################### #ENABLE GZIP COMPRESSION END ###############################

Read More