PHP Script to Create Your Own Captcha
What is Captcha ? Captcha is a type of challenge–response test used in computing to determine whether or not the user is human. CAPTCHA is mainly used as a security check to ensure only human users can pass through. Generally, computers or bots are not…
Top JavaScript Interview Questions and Answers
Question : What is JavaScript ? Answer : JavaScript is a client-side scripting language. JavaScript is used to develop interactive web pages as it inserts dynamic text into HTML element. JavaScript is also known as the browser’s language.…
Complete Web Push Notification using OneSignal in 10 steps
A push notification is a message that is “pushed” from backend server or application to user interface. Push Notifications can be beneficial in many ways. Users can be provided with latest sports scores, some breaking or flash news or let a user know…
Generate random integer between two numbers using JavaScript
Random number generation is the generation of a sequence of numbers or symbols that cannot be reasonably predicted better than by a random chance, usually through a random-number generator (RNG). Computer random number generators are important in…
Easy Face Detection Using JQuery
Face detection is a computer technology being used in a variety of applications that identifies human faces in digital images. There are a number of approaches and techniques to achieve face detection. In this post, we will be dealing with one of the…
Disable Landscape View in Mobile View Using JavaScript and CSS
Page Orientation According to Wikipedia, Page orientation is the way in which a rectangular page is oriented for normal viewing. The two most common types of orientation are portrait and landscape. The term “portrait orientation” comes…
PHP Source Code : Complete Facebook Chat Bot using PHP
Facebook Page has now become a vital part for any business. With increasing dependency on Facebook for promoting products or services, Facebook Messenger Chat Bot can prove to be a new tool to enhance your business to the targeted audience. Source Code…
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',…
Client Server Communication : HTTP, Polling, SSE, Websockets and Comets
A server is anything that provides service while a client is the one that receives the service. Based on a number of approaches and techniques, client-server communication can be classified into variety of classifications. In this article, we are going…
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;…