PDF view in browser and export as file – PHP

If you link a PDF file saved in your server with an anchor tag and give it a “download” attribute. It will make the file downloadable. When user clicks on it, it will be downloaded on his computer. But in some cases, you want to view the PDF file in the browser. Rather than downloading …

jQuery ratings plugin with database & average calculation

There is a jQuery ratings plugin called “Starrr”. It allows you to get feedback input from the user by displaying him stars. Lower stars means they didn’t liked your product or service. And higher stars means they liked your product or services. Let’s get started First you need to download and integrate a small and …

Google Maps in PHP without API Key – By Coordinates & By Address

Demo Google maps can be embedded in your website using PHP without providing API key. You just need to enter your address. Or you can enter coordinates, longiude and latitude. Google Maps is a web mapping service developed by Google. It offers satellite imagery, aerial photography, street maps, 360° panoramic views of streets, real-time traffic …

Realtime Web-based Chat in Firebase

Realtime Web based Chat in Firebase - Javascript

Following this tutorial, you will be able to do realtime chat in Firebase in your website. We will be using Javascript in this tutorial. Firebase Firebase provides the ability to use non-relational database which means data will be stored in objects and arrays. It uses JSON format to save data in database. The structure of …

Get YouTube channel videos, statistics and comments

You can get your YouTube channel statistics using YouTube Javascript SDK. You can also get comments of each video by providing its ID. YouTube Data API allows you to get statistics from your YouTube channel. You can get all videos from your channel and you can get individual video detail. Video detail will contain video …

Private user to user chat in Node JS & MySQL

Private chat does not mean that there is not any server between sender and receiver. There will always be a server in the middle of you and the person you are chatting with. That does not mean that they are spying on your data. It means that they are providing you a medium where you …

Realtime Web-based Chat in Node JS & MySQL

We will create a simple and real-time chat module in Node JS and MySQL. We will be using socket IO for real-time communication. Why chat in Node JS ? Node JS is a web server that runs under the most famous and widely used programming language, Javascript. As Javascript is asynchronous, so Node JS server …

Cookie – PHP

Cookie is used to enhance browsing experience by storing less sensitive data on user’s browser. It is used for many purposes. You can use cookies to know the person who requested some resource from your server, so you can identify him later. Or you can use cookies to reduce the number of requests on server. …

Add overlay or watermark on video – PHP & FFmpeg

In this article, we will be using FFmpeg tool with PHP to add watermark on a video. Watermark on video Watermark (also known as overlay image) is an image that displays in a specific position throughout the video. It is important to display your brand logo along with your video. Also it serves as a …

Generate thumbnails of video – PHP & FFmpeg

In this tutorial, we will be creating a script in PHP and FFmpeg. We will provide a video to our script. And our script will generate thumbnails of that video after regular intervals. Thumbnails of video Thumbnail is just a preview of a video so user can see what’s inside the video before playing it. …