Free JSON API for News and Blog Articles
In this article, we are going to implement a Free News API provided by NewsAPI.org. Please provide credit to https://newsapi.org/ while using the API for non commercial use. In case you are using for commercial purpose, check their pricing. Source Code :…
Calculate Distance between two location with Latitude Longitude using PHP
In this article, we will be writing a simple PHP function to calculate distance between two points with Latitude and Longitude. The distance is then converted into various units including miles, feet, yards, kilometers and meters. <h2…
Register free domain name and Get Free hosting
In this post, we will learn to register a domain for free and we will host a site in that domain that too for free. I am trying to host letstrythis.tk. We need to sign up for an account in freenom.com which is completely free of cost. We will be hosting…
Generate Random String using JavaScript
In this post, we will be writing a simple JavaScript function that will generate random string of desired length. We can generate a random string with fixed set of characters using simple match and string functions. <script> function…
Generate Random String using PHP
In this post, we will be writing a simple PHP function that will generate random string of desired length. We can generate a random string with fixed set of characters using simple string functions like substr, str_shuffle and str_repeat.…
Find and Replace Text using JavaScript
In this post, we will be writing a simple JavaScript function to find and replace certain text in a HTML element. Source Code : <div id="haystack"> By 55,000 years ago, the first modern humans, or Homo sapiens, had arrived on the Indian…
Animated Typing with TypeIt.js Jquery Plugin
TypeIt is the most versatile JavaScript typewriter effect utility on the planet. With a straightforward configuration, it allows you to type single or multiple strings that break lines, delete & replace each other, and it even handles strings that…
Generate QR Code using PHP Library
This library helps us to generate QR codes very easily. The library makes use of bacon/bacon-qr-code to generate the matrix and khanamiryan/qrcode-detector-decoder for validating generated QR codes. Further extended with Twig extensions, generation…
Format Numbers in PHP ( like 1.2K, 3.1M, 2.5B )
We normally see huge number in formats like 1.2K, 3.1M and 2.5B. Its not practicable to write large numbers in full numbers like 1200000 or 2200000000. In this post, we will be writing a PHP function to format a number in the short form. <?php…
How to download YouTube Thumbnail using PHP ?
YouTube has now become an integral part of our internet browsing habit. YouTube has provided easy access to the various sizes of video thumbnails. The various resolutions of YouTube video thumbnails are provided below : Thumbnail Links Max Resolution :…
How to download Youtube Video using PHP ?
In this post, we will be writing a PHP script to download a YouTube video using PHP. We have a Youtube Downloader Class provided by CodexWorld. We will be using the same class to download YouTube video. There are two php files for this. index.php and…
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…