Supun Kavinda's Blog

Beginner's PHP Tutorial
PHP is a server-side scripting language designed for web development which powers many websites from blogs to the most popular websites in the world. In this tutorial, we teach you how to master PHP step-by-step.
PHP TUTORIAL
Supun Kavinda
Laravel High CPU Usage Because of File-based Session Storage
Laravel High CPU Usage Because of File-based Session Storage
Laravel MYSQL
Published on May 16, 2022 3840 views
Resizing Droplets: A Personal Experience
If you want to resize a droplet, resizing through the DigitalOcean dashboard seems to be the best option. Even the documentation says it will take 1 minute per 1GB, in my case, it took less than 1 minute for 40GB.
DigitalOcean
Published on Aug 8, 2021 3661 views
Moving our CDN (10+ GB images) to a new server
We recently moved the Hyvor CDN to a new server. It had 10GB+ images. We were able to move all the images to a new server without any downtime on our CDN. This post explains everything we did.
devops
Published on Feb 27, 2021 6129 views
Disqus, the dark commenting system
I'm explaining why Disqus is a great example for "if you're not paying for it, you become the product".
Privacy
Published on Jan 30, 2021 117605 views
Creating a Real-Time Chat App with PHP and Node.js
In this tutorial we will create a Chat app using PHP and Node.JS. PHP will run the whole website while Node.JS runs the real-time system. Websockets are used.
PHP Node.JS
Published on Apr 14, 2019 66737 views
All About MYSQLI Prepared Statements in PHP
Discusses everything about MYSQLI Prepared Statements with PHP with plenty of examples. SELECT, INSERT, UPDATE and DELETE are fully described.
PHP MYSQLi
Published on Jan 21, 2019 39505 views
Image Upload with AJAX, PHP, and MYSQL - The Beginner's Guide
In this tutorial, we will talk about how to upload an image to the server with AJAX, validate it with PHP, save it in the server, and finally, we will save the path of the image in the database to retrieve the image later.
PHP
Published on Oct 3, 2018 47827 views
PHP Contact Form - The Email Method
Without a contact us page anyone won't be able to have a complete website. So, create your contact page with PHP using the email method. It's easy!
PHP
Published on Sep 17, 2018 32482 views
The Best Way to Perform MYSQLI Prepared Statements in PHP
The best way of doing prepared statement is pretty simple that other non-best ways. So, why wouldn't you try this method? This method fastens your programming while securing your website
PHP MYSQLi
Published on Sep 7, 2018 50725 views
Live Search with AJAX, PHP, and MYSQL
Live search is an important part of a website. This tutorial shows you how to create a live search with AJAX, PHP and MYSQL step-by-step
PHP
Published on May 19, 2018 55972 views
Google Recaptcha with AJAX and PHP
Implement Google Recaptcha on your website, use it in Ajax requests and validate it with PHP. Send ajax request to your server, then Google servers and get back the response.
PHP Recaptcha
Published on May 1, 2018 33907 views
Input Validation with PHP
Of course, validating user input is really important for dynamic websites. Invalid user input can make errors in processing. Therefore, validating inputs is a must. The awesome language, PHP has numerous in-built functions to validate user inputs. This tutorial will help you to understand Input Validation with PHP. Finally, we will create an awesome class to validate Inputs efficiently without writing the same code again and again.
PHP
Published on Apr 11, 2018 106684 views
Setting Up A Secure Web Server On Ubuntu
Server Administration
Published on Mar 31, 2018 8426 views
AJAX Request Handler with PHP
Ajax is a web technology that can change a boring static website to an awesome dynamic website. If you are a PHP developer, it is a must to know how to create a PHP handler to handle Ajax requests, POST/ GET data.
PHP
Published on Mar 30, 2018 35579 views
Ajax Long Polling with PHP
Long Polling is one of the simplest ways to create a real-time communication system with PHP. In this tutorial, we will see how we can use PHP functions to perform long polling.
PHP
Published on Feb 6, 2018 47615 views
Autoloading Classes with Namespaces in PHP
Learn everything about php autoloading. Understand the use of autoloading functions. Learn how to include, save files and how to manage a good file structure.
PHP
Published on Dec 13, 2017 51713 views