Security is always a primary agenda of application development. CSRF (Cross-Site Request Forgery) token is one of a very common security technique we use for malicious attacks. A common PHP Framework like CodeIgnitor also has that feature. From CI v2.0 it has been introduced. We need to follow some steps to use the automated […]
Alternative to the Deprecated PHP “each” Function
Recently I have encountered an issue with my old codes. Those were running just fine earlier. Issue occurs while my server updated its PHP version to 7.2. Actually, this is common, with up-gradation to server configurations some old functions get deprecated, and in my case, it was PHP “each” function. With PHP version 7.2 “each” […]
Upload images to your S3 instance using Laravel
S3 is a package of Amazon Web Services(AWS), where we can store a large number of files. So, basically, it is a storage device. It has one big advantage. You can configure the permission access of files from your AWS Console. Configure S3 with Laravel: <> open the link https://aws.amazon.com/console <> hover your mouse on […]
Upload and Display Image using JavaScript and PHP
In this blog, I’ll show how to upload and display an image with both JavaScript and PHP. Please follow these steps. Step 1 First make a folder named, “upload-image”. Under “upload-image”, create another folder for the image, named “image” where my image will show after upload. Step 2 1. Create a file named, “index.php” […]
LEARN ABOUT JSON ENCODE AND DECODE IN PHP
JSON is basically used when we want to send back data to the client server. JSON ENCODE means if the data type is in array format then it actually turns into JSON OBJECT, and JSON DECODE is vice versa to the JSON encode. here I can show you a small example of JSON ENCODE $data […]
How to use cron job in Laravel?
First, we should know what is a cron job? Cron is a Linux tool, which schedules a command or script on the server to run automatically at a specific time interval. That means no event is needed to run the cron page. Laravel gives us a simple and easy process to activate cron in our […]
Use of PHP Artisan command with Laravel framework
Laravel is a highly productive oops structure supported PHP framework. In the laravel framework, PHP artisan command is combined with the command line interface. Laravel application provides command line setup facilities where you can create and manage your project from command line. PHP artisan provides several numbers of commands which are very important and useful […]
Open Source Software: Decoding Controversies and their Solutions
Everyone around the world has some idea what an open source is, right? Well, if you don’t actually know, there is no need to feel left behind. Let me simplify it for you! Any product designed to be publicly accessible that can be used, modified, and shared by people is known as “open source”. So, […]