Posts
PHP Working With JSON
In this code snippet, we’ll learn how to work with JSON in PHP. You can use json_encode() to serialize and json_decode() to deserialize JSON. json_decode() also takes a second parameter(true/false) where…
PHP Making Requests With CURL
In this code snippet, we’ll see how to send HTTP requests with curl in PHP. Curl can be used to make HTTP request from the backend in PHP. In this…
ReCaptcha V3 Implementation
In this post, we’ll learn how to implement reCAPTCHA on a website. Recaptcha is used to confirm that the user interaction on your site was made by a human and…
PHP String Sanitization
In this code snippet, we’ll learn how to perform string sanitization in PHP. An attacker might try to inject some malicious code into your backend. As a developer, you can…
PHP Reading And Writing Files
In this code snippet, we’ll learn how to read and write files with PHP. Let’s see the example below…
File Uploads With JS And C# Azure Functions
In this code snippet, we’ll learn how to upload files with Javascript. We will use the input HTML element and set its type to “file”. Then javascript can be used to retrieve the…
Javascript Making Graphs With Chart.js
In this code snippet, we’ll learn how to make graphs with Chart.js in Javascript. Chart.js is a very nice javascript library that allows you to visualize data by making different…
Javascript Downloads
In this code snippet, we’ll learn how to perform downloads with Javascript. File downloads can be programmatically started with javascript by creating a temporary link element that points to your…
Javascript Web Workers
In this code snippet, we’ll look at web workers in Javascript. A web worker is a script that can run in the background separate from the main page javascript. This…