In this tutorial, we are going to use a PHP library NepaliCalender.php to convert date from AD to BS and BS to AD. Download NepaliCalender.php library from here : NepaliCalender Use the following function to convert English Date (A.D.) to... Read more
In this tutorial, we are going to develop a complete Google Analytics Realtime Traffic Tracking tool using Analytics API. UPDATE : New tutorial is made for GA4 Realtime API : https://youthsforum.com/programming/php/google-analytics-ga4-realtime-api-using-php/ Please follow these steps to develop your own Google... Read more
In this tutorial, we are going to get random jokes with Joke API using PHP. Source Code : <style type="text/css"> body{ background-color: aliceblue; } .box-container{ display: flex; justify-content: center; align-items: center; height: 100vh; } .box{ background:bisque; border-radius: 15px; box-shadow: 3px... Read more
An Equated Monthly Installment (EMI) is defined as “A fixed payment amount made by a borrower to a lender at a specified date each calendar month. Equated monthly installments are used to pay off both interest and principal each month,... Read more
In PHP, file_get_contents() function is commonly used to get content of a file or a url and it works like a charm in normal scenario. If in case, the URL or file endpoint is under htaccess authentication, issue arises. Learn... Read more
Easy Ticker is a jQuery plugin helps you create a highly customizable, cross browser, flexible and infinite news ticker on your web page. Full Source Code : <!doctype html> <html> <head> <meta charset="utf-8"> <title>Simple News Ticker using JQuery Plugin</title> <style... Read more
A simple PHP HTML DOM parser written in PHP5+, supports invalid HTML, and provides a very easy way to find, extract and modify the HTML elements of the DOM. jQuery like syntax allow sophisticated finding methods for locating the elements... Read more
The following source code demonstrates a simple PHP API to get random quote. We simply need to make a GET request to the API endpoint : https://api.quotable.io/random and we will get a random quote in response. Full Source Code :... Read more
The following source code enables us to create a custom playlist with just the videos that we want to play. Full Source Code : <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.4/css/bootstrap.min.css"/> <style type="text/css"> body{ background: #ddd; } .head{ margin-top:20px; margin-bottom: 20px; font-weight: bold;... Read more
In this article, we are going through a PHP library to detect and decode QR-codes. Installing QR Code Reader/Decoder PHP Library The recommended method of installing this library is via Composer. We need to run the following command from the... Read more
In this article, we are going to learn to convert number into words using PHP. We have a PHP function which simply returns the word for the corresponding numeric value passed to it. PHP Function to convert number into words... Read more
In certain scenarios, we might need to make sure that a client is not allowed to request a page for multiple number of times within a period of time. The following sample PHP code exits the execution when a client... Read more
We often need to calculate age of an individual based on his/her date of birth in normal web applications. The basic idea is to calculate the difference in days, months and years between current date and provided date of birth... Read more
In this article, we are going to learn to create Youtube Video Embed code from Youtube Video URL using PHP. The following source code provides PHP functions to get Youtube video id from video URL and pass it to get... Read more
