Website Performance Optimization : Page Caching
A web cache is an approach for the temporary storage (caching) of web documents, such as HTML pages and images, to reduce bandwidth usage and server load. The content of a webpage can be stored in a file temporarily so that every time server receives a…
How to execute PHP code from HTML File ???
The following post shows a cool way to execute PHP code from files with HTML extension with the help of .htaccess file. We can write PHP code in a file with HTML extension and run that HTML file on server side thus executing the PHP code written on it.…
How to get MAC Address of all Devices in my Network using PHP ?
MAC Address According to Wikipedia, a media access control address (MAC address) of a device is a unique identifier assigned to a network interface controller (NIC). For communications within a network segment, it is used as a network address for most…
Convert JPG/PNG Image to WEBP Using PHP
In this post, we are going to learn how to convert JPG/PNG images to WEBP images. WebP is a modern image format that provides superior lossless and lossy compression for images on the web. Using WebP, webmasters and web developers can create smaller,…
Add Source Link or Copyright Note When Someone Copies Text from your website
The following post shows a simple JavaScript code to add link for reference when someone copies text from your website. You can just copy paste the following code to your webpage and add the link to the copied content. $(document).on('copy',…
Cryptocurrency : Get Current Bitcoin Price using PHP API
According to Wikipedia, Bitcoin is a cryptocurrency, a form of electronic cash. Cryptocurrency is basically a digital currency in which encryption techniques are used to regulate the generation of units of currency and verify the transfer of funds,…
On/Off Toggle Switch using CSS and JQuery
In this post, we are going to design an On/Off Toggle Switch using HTML, CSS and JQuery. Full Source Code for On/Off Toggle Switch : <style type="text/css"> .onoff{ height: 20px; padding:2px 5px; color:#fff; border-radius: 5px; width:70px;…
PHP API : Get Weather Report and Forecast
In this post, we are going to use PHP API to get current weather report at a location along with 5 days weather prediction. Click Here for Demo Full Source Code to Get Weather Report and Forecast Using PHP API <?php $cache_file = 'data.json';…
Using Graph API to get Facebook Share Count
In this post, we are going to learn how to fetch Facebook share count using Facebook Graph API. According to Facebook, Graph API is the primary way for apps to read and write to the Facebook social graph. All Facebook’s SDKs and products interact…
Sending structured message and keyboard menu in Viber chat bot
In this post, we will develop a Viber chat bot similar to that of chat bot of LetzCricket. Finding Chat bot First of all, we are going to find how the chat bot of LetzCricket looks like. For this, we need to search for a public account named LetzCricket…
Build a complete viber chat bot using php
Chat Bot is very popular these days. With Chat Bot, you can connect to your customers with Deeper Interactions and grow your business. In this post, I am going to share how to develop Viber Chat Bot in 6 simple steps using PHP. 1. Create Public Account…
Backup/Restore MySQL database using PHP
MySQL is an open-source relational database management system (RDBMS). MySQL is a central component of the LAMP open-source web application software stack. LAMP is an acronym for “Linux, Apache, MySQL, Perl/PHP/Python”. In current scenario,…
Instagram API to fetch User Profile, Followers, Following, Posts
Simple Instagram API that fetches User Profile, Followers, Following, Images, Posts, Likes , Shares using JavaScript #Instagram #API #InstaAPI Full Source Code : <link rel="stylesheet"…
Face Detection using pure PHP: No OpenCV required
In this post, we will be implementing a Face Detection library in PHP. We don’t need any libraries like OpenCV for this Face Detection to work. Use of already trained data will be used to detect face in an image. 1. Download FaceDetection library…
Access WebCam using JavaScript [Updated]
In this post, we are going to learn to access WebCam using Javascript. We will use getUserMedia to access WebCam and show the video in our webpage. Full Source Code to Access WebCam using JavaScript <center style="margin-top:4%;"> <h1…