Home

Posts

PHP Code Snippets JSON

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 Code Snippets Making Requests With CURL

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…
PHP Code Snippets ReCaptcha V3 Implementation

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 Code Snippets String Sanitization

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 Code Snippets Reading And Writing Files

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…
Code Snippets Uploading Files

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…
Code Snippets Making Graphs With Chart.js

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…
Code Snippets Downloads

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…
Code Snippets Web Workers

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…

Advertisment ad adsense adlogger