Posts

Showing posts from April, 2025

Image Upload Without Validation With Proper Explanation Using PHP Along With Coding

Image
Image Upload Without Validation With Proper Explanation Using PHP Along With Coding NOTE: To upload the Image I have created one new folder "uploads" which I have used within my code "$folder="uploads/".$fileName" within my folder "Image Upload Without Validation". So, just let me explain here why I have used enctype="multipart/form-data" in Image Upload Without Validation.php page. Hooray, let's begin.  Here I have used enctype="multipart/form-data" as because text can be converted into binary by default. But image or file cannot be converted into binary by default. So, to convert the image or file into binary, I have used encrypt type (enctype) here. So, what does machine understands? I know that machine understand only 0 and 1 in his language. Machine doesn't understand any other language. So, in backend when the data is passing from User Interface (UI), it will count as binary only. That's why, here I have used...

5K & 10K Registration Form Created Using PHP Constructor OOPS Methods(Explained The Concepts Of Constructor, Class, Objects,__construct() function)

Image
 5K & 10K Registration Form Created Using PHP Constructor OOPS Methods  (Explained The Concepts Of Constructor, Class, Objects,__construct() function) So here as I am going to create 5K & 10K Registration Form using __construct, so I am going to explain about __construct also. But before that first let me explain what is Constructor in PHP OOPS Concepts (Object Oriented Programming)? So, here Constructor is basically a function who creates objects. Constructor enables the object to initialise itself which means that whenever we create any object in a class, constructor is called first. So, now you may ask me what is class and what is objects? So, here class is basically a container, which contains a group of functions, variables and other class objects as well. In other words, we can say class is the blueprint of an object. So, here if I want to give a real life example of a class, then I can give an pure example of class like school class, college class, tuition class...

Project Management Data Created Using PHP Laravel Framework

Image
 Project Management Data Created Using PHP Laravel Framework Here in Project_Management_DataController.php page I will get the below output in the images once I command " / / return view("showallProject_Management_Data")->with(['Project_Management_Data'=>$Project_Management_Data]);" and command out "   dd ( $Project_Management_Data ); //dump & die" this two lines in Project_Management_DataController.php page. Just this two lines I have make the changes to get the below output as shown in the images below. Step 1 - First I have created one page under  " C:\xampp\htdocs\Ayan_Home\Laravel\myApp\app\Models" by using the command in artisan terminal in VS Code "php artisan make:model Project_Management_Data". Project_Management_Data.php: <?php namespace App\Models; class Project_Management_Data {     // DTO or DAO     // Data Transfer Object.     // Data Access Object.     public function getAllProject_Management_Data(){ ...

PHP Object Oriented Programming Constructor Methods Concepts Utilized In 26 Innocent Hindu Tourists Assassinated on 22nd Of May, 2025 In Pahalgam On Terorrist Attack(Both Images And PHP OOPS Constructor Methods Codings Included)

Image
PHP Object Oriented Programming Constructor Methods Concepts Utilized In 26 Innocent Hindu Tourists Assassinated on 22nd Of May, 2025 In Pahalgam On Terorrist Attack(Both Images And PHP OOPS Constructor Methods Codings Included) I am getting the popup of "Confirm Form Resubmission" as because I have used POST method in form (action). Here I have created the form of Deceased 26 Hindu Tourists and I have called the values of the form using constructor and methods and once I click on the submit button my output will get generated as shown in the image below. PHP Constructor Methods Coding Of OOPS(Object Oriented Programming) <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Kashmir Pahalgam Tourists Attack</title> <style type="text/css"> .d1{ background-color: lightgoldenrodyellow; } .d2{ c...