Introduction to PHP by Bharathi Patnala
- January 5, 2024
- Posted by: MainInstructor
- Category: C Java JavaScript Pascal PHP Python Ruby SQL Web Development
Video Title: Introduction to PHP by Bharathi Patnala
Greetings to all welcome back to my channel in this video I’m going to explain about uh PHP first unit so the outline of uh this presentation having the contents programming languages versus scripting languages what is PHP why we need PHP what are the various features of PHP and also uh you can uh
See the execution process of a PHP program so quickly start the presentation session so that is uh differences between programming languages as well as scripting languages so already programming languages like Java programming in the first semester you have C and in the second semester you are learning the concepts of implementation of data
Structures using C like that okay so I I think you familiar with the concept of programming languages now in this semester you have both web Technologies as well as PHP and MySQL both are having scripting languages so in this presentation now I tell what is the differences between programming languages as well as
Scripting languages so first programming language so in a programming language the entire code whatever you are writing a code that should be converted into machine codes so that should be converted into a machine code so machine we are using the translators so there is a translator which should
Convert the high level language into machine code that is nothing but high level language into an object code so that we are using compiler based languages compiler based languages because with the help of compiler only we are converting the program in language that means whatever the code
You you have written that should be converted into a machine code okay so coming to scripting language this is also a type of programming language but which is used to design to automate the execution of tasks okay for a runtime system and it is interpreter based languages here whatever the scripting language contain
A set of lines each line can can be executed line by line in a programming language we generate exe files but in a scripting language we don’t have any exe files so in a programming language uh we are mainly used to make complex softwares and scripting languages were created to assist the programming
Languages so here you can see all programming languages are not scripting languages but all scripting languages whatever we have are programming languages so the examples of programming languages are C C++ cobal Pascal Java Etc and examples of scripting languages like webscript Pearl Ruby PHP JavaScript
Etc okay in this semester you have uh a course that is PHP which is a scripting language so which is used uh to uh which is is used to design and automate the execution of task for runtime system so this is the differences between programming languages as well as
Scripting languages so coming to what is a client side scripting as well in the scripting languages we have client side scripting and serers side scripting so what is meant by client side scripting and what is meant by server side scripting so in a client side scripting
So the request for a web page sent by the client is received by the server okay so there uh client and server we have uh two machines one machine we can call it as client and the other machine we can call it as server for example colle skbr GDC m.
Ac.in is our College website so the web pages all the web pages everything can be hosted in a server okay isn’t it so cont that we can call it as server so this is consider it as a server so we are storing all the web pages so
Now the client client is nothing but whoever wants to collect the information from the server is nothing but client suppose if you want to retrieve the information from our College website then you are act as a client okay so Cent information something information sending reest respon then it is called it as
Client side scripting you are sending a request then immediately it searches for that request and give a response there is no processing of statements in the server so Cent side scripting process so whatever the request you are asking to your server that simply give a response. information okayest for a web page sent
By the client is received by the server and displayed the web page at client side next what about server side scripting if the request of a client having server side scripting so observe if the request of a client having server side scripting server side scripting unali and that script is executed on the
Server after that the results of the script is written to the client okay so client only client receive for your results y21 03 041 something your ticket number marks display pass fail something you are simply sending a request so number script itself having server side what is that server side So within this
Server we have a backend database and also the script should be executed in the server itself what is that script so database somewhat process should be executed in the server then we can call that type of scripting is a server SES scripting okay the next one so simply in a client s
Scripting we have a web browser which executes the client side scripting so client side scripting execute we need web browser so brows so Firefox Chrome Edge op all these we can call it as web browsers web browsers are nothing but you are browsing a web pages okay so client side
Scripting web browser enough but whereas in server side scripting we need a web server okay so what are the examples of CLI side scripting so we have HTML JavaScript VB script what about server side scripting so we have PHP python Ruby ons okay so all these are we have
Servers set scripting now what is PHP so PHP what are the differences between programming languages and scripting languages langages langu we need to know the difference between programming languages as well as scripting languages next again scripting languages Cent side scripting as well as well as server side scripting so client side scripting
Advantages server side scripting so we need to learn about what is PHP why we need and what are the features as well as how we can write a program as well as how you are executing your PHP program but PHP is a server side scripting we need a web server installation
Process okay so coming to what is a PHP so PHP is an acronym for hypertext preprocessor so the name itself says PHP means hypertext preprocessor so what is PHP so PHP is an open source objectoriented as well as interpreted scripting language so it is freely available the source code is freely
Available the PHP software is freely available in the market as well as it has the properties of objectoriented so what are the features of object oriented so you learn in third semester Java programming in fourth semester in objectoriented programming using Java so what are the features so the features of
Object Orient Ed are abstraction encapsulation polymorphism inheritance okay again we will learn all these Concepts in later videos okay so PHP is a open source objectoriented and interpreted interpreted means all scripting languages use an interpreter that means the script whatever you have written that should be executed line by line
That can be executed at the server side so phpt we need a web server okay so CL then we should use web servers okay next so one more advantage of PHP is it is well suited for web development so that’s why it is used to develop web applications okay next PHP was created
By Rasmus leof in the year 1994 but it appeared in the market is 1995 okay so it is a server side scripting language used to manage the dynamic content of the website so static and dynamic you are familiar with these terms static in the sense it can’t be
Changed dynamic means it can be frequently changed static Pages means that content which is in that page cannot be altered Dynamic page in the sense the content will be modified result common for example students number first language second language LSC SDC math physics computer science only tempate should be same
Then it can call it as static content Okay so it is faster than other scripting languages like ASP and JSP so Java server Pages those two are also we can call it as a scripting languages okay but other than that PHP the processing of scripting is very faster when compared to the scripting
Languages okay so what is the need of a scripting language so first one is it is a server side scripting language used to design Dynamic web application so previous slide which is used to design Dynamic web pages okay next it handles all Dynamic content and session management for the website
So normal session management session management is nothing buture I will explain that topic also and uh you can also have familiar with uh setting of cookies and also you can access the cookie variables next it provides security how it helps to encrypt the data and also apply the validation the page itself encrypted
While transmitting dat and one more thing it also supports various protocols normal HTTP SNMP prot AOC support PHP programming and also one of the advantage of uh using this PHP is the installation process is very easy and also you can quickly learn uh how to
Write a programming so uh why uh What uh what are the best aspects uh for using this PHP is you can create open read write delete and close files on the server and directly in the server you can open a file you can close a file you
Can read the content from the file as well as you can also o write some content into that file on the server as well as PHP collects the data easily from the server and also uh send and receive cookies as well as user access controlability
Everything can be done in PHP in an easy manner okay that’s what we are using this uh PHP and also one more thing is uh PHP can easily handle the forms like HTML forms text box radio buttons like that okay so the data whatever you Areo submitting to the server that should be
Collected easily and the data submitted by the client can be stored in the server schar application that data should be stored in the background okay so back end that is nothing but database so PHP itself PHP with mySQL okay so what are the features of pH PHP so
PHP having some sort of features it has okay so compartive other scripting languages it is also a very popular scripting language because of its Simplicity as well as it is a open source so some of the features I have listed here that is uh performance open source familiar with the
Syntax okay platform independent database support Loosely typed programming Lang scripting language it has a web server support and it has a PHP Community to answer our queries okay so all these are the features of PHP now let me explain uh one by one so the first one is performance PHP script is
Executed much faster than other scripting languages already JSP ASP some other scripting languages we have Al uses its own memory so that so that the results are faster processing speed and we get a better performance okay so main advantage it has own memory automat we get better performance okay
Next second one is open source so open source PHP source code and software are freely available on the we without paying a single rupee you can freely download the software from the websites and all the components are also freely available to download and use it next so familiarity with syntax
Easy syntax as a program we can easily write okay the next one is platform independent so PHP all operating systems all platforms code available easily exed in other operating systemsat Independence earlier programming languages like c c Plus+ are platform dependent so operating system impl that should be executed on the same
Platform but PHP is also a platform dependent that means it is available in all operating systems and one more thing you can develop an application in one operating system that can easily executed in other operating systems it has the next feature is it has a database support that
Means we have several databases MySQL SQL to BC like that so all uh PHP supports to all leading uh to all these leading databases okay so the next one is Loosely tled typed scripting languages soly then you should Define find that Vari data type after that you can give
Variable name so throughout the program the data uh type for this particular variable is an integer so without declaring a data type you can’t use the variable in your program but wherever loely direct variable creation strongly Ty programming languages but PHP loely typed programming language it can be used to create a
Variable without declaring its data type so directly you can create a variable by assigning a value to it so this 10 is assigned to a the very next minute I can uh assign uh some other string to that variable so Sam is equals to bti then automatically the type of variable
Change to a string that’s why we can call it as PHP is a Loosely typed programming language so it will be taken automatically at the time of execution based upon the data it contains so string okay next web server support it has a web server support that means it
Has all local servers which we are used today that is Apache Netscape Microsoft IAS all are compatible with this PHP and it it has also some some other feature that is nothing but a security it is a secure language used to develop uh uh for website it conses multiple layers uh
To prevent the threats and malicious attacks the final one is uh PHP Community it has a helpful PHP community so most of the community developers regularly updates the documentation tutorials FAQs everything can be uploaded in the uh PHP community so that uh every uh beginner if if they have any
Doubts they can post their queries into that Community then millions of people are act as a fa can your into commity they can easily send the answer okay next so how we can install our uh PHP so if you want to install PHP you need to install software stack so means Apache
So that is a web server M mean M stands for MySQL P stands for PHP so so there are several options available in the market those are WM for Windows LM for Linux mm for masinos s for Solaris FM for free BSD so all these are operating systems various operating systems Sy
Cross represents cross platform aache MySQL PHP and also it includes file to transfer protocol security layers okay so all other features are also it has okay so so if you want to install the so okay friends.org it has a front page here you can download so Zam for Windows
Click on next next next next [Applause] download next next cck so fin contr we first you should learn the sytax of PHP program so the syntax of PHP program is so less than question mark PHP MEP okay so one more you can HTML and CSS scripts into your PHP okay example
Program as PHP now I want to display this message on the web page so web page message display message I should use the construct Echo so Echo is a construct used to display the given uh string onto the web page okay so let Me let me execute the program so First right click run as admin yes okay okay so automatic server open at present we need Apache and myql so the remaining you can stop that okay so minimize it next you should write your uh uh PHP program okay so once installation process soorp are edor different editors brackets okay notepad or
Edit so program so just wait so file new so less than question mark PHP question mark greater than first okay so welcome to skbr government degree college so the print con e welcome to skbr government degree college so codes close ches a semicolon now you should save this
File have folder uh named HD docs within that you can create one folder so fer we can create websites for various organizations organization IND so separate files in the folders sample. PHP okay and save the program okay so once program the program should be executed
In a web browser okay so within this web browser Local Host ID so in my system it has 888 so Local Host colum 888 SL create ch folder skbr within that my file name is sample. PHP so welcome to skbr government degree college so this is the output of our PHP
Program suppose if you want to embed HTML tax for example I want to bold skbr so use your HTML tax htlp so once to start your Zam server so Zam server start you get the output okay so I hope uh everyone understood this particular concept okay so lab programs execute outputs
Not thank you
Video Keywords: PHP
-
Sale!
Wireless WIFI Repeater Extender Amplifier Booster 300Mbps
$29.99$14.99 Add to cartWireless WIFI Repeater Extender Amplifier Booster 300Mbps
Categories: Electronics, Wi-Fi Router, Wireless Wi-Fi Extender Tags: 300Mbps, 802.11N, Amplifier, Booster, Extender, mobile wi-fi booster, Remote, WIFI, Wireless, Wireless WIFI, Wireless WIFI Repeater, Wireless WIFI Repeater Extender, Wireless WIFI Repeater Extender Amplifier, Wireless WIFI Repeater Extender Amplifier Booster, Wireless WIFI Repeater Extender Amplifier Booster 300Mbps$29.99$14.99 -
Sale!
Full RGB Light Design Gaming Headset Headphones with Mic
$24.99$14.99 Add to cartFull RGB Light Design Gaming Headset Headphones with Mic
Categories: Electronics, Gaming, Gaming Headsets Tags: Design, Full, Full RGB Light Design Gaming Headset, Full RGB Light Design Gaming Headset Headphones, Full RGB Light Design Gaming Headset Headphones with Mic, Gamer, Gaming, Gaming Headset Headphones, gaming headset wireless, Headphone, Headphones, Headset, Light, Mic, Package, RGB$24.99$14.99 -
Sale!
Wireless BlueTooth Multi-Device Keyboard Mouse Combo
$39.99$19.99 Add to cartWireless BlueTooth Multi-Device Keyboard Mouse Combo
Categories: Electronics, Gaming, Gaming Keyboards, Keyboard Mouse Combos Tags: Combo, Keyboard, keyboard mouse combos, Mouse, MultiDevice, Set, WireKeyboard Mouse Combo, Wireless, Wireless BlueTooth Keyboard Mouse Combo, Wireless BlueTooth Keyboard Mouse Combos, Wireless BlueTooth Multi-Device Keyboard Mouse Combo, Wireless BlueTooth Multi-Device Keyboard Mouse Combos$39.99$19.99 -
Sale!
High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar
$199.99$139.99 Add to cartHigh Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar
Categories: Gaming, Gaming Chairs Tags: Adjustable, Chair, computer chairs, Desk, Executive, Gaming, Girl, Headrest, High, High Back Leather Executive Adjustable Swivel Gaming Chair, High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest, High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar, High Back Leather Executive Adjustable Swivel Gaming Chairs, Leather, Lumbar, Office, Racing, Swivel$199.99$139.99 -
Sale!
Professional LED Light Wired Gaming Headphones with Noise Cancelling Microphone
$29.99$19.99 Select optionsProfessional LED Light Wired Gaming Headphones with Noise Cancelling Microphone
SKU: N/A Categories: Electronics, Gaming, Gaming Headsets Tags: Cancelling, Gaming, Gaming Headphones with Noise Cancelling Microphone, gaming headset, Headphones, Headset, LED, Light, Mic, Microphone, Noise, Professional, Professional LED Light Wired Gaming Headphones, Professional LED Light Wired Gaming Headphones with Noise Cancelling Microphone, Wired, Wired Gaming Headphones, Wired Gaming Headphones with Noise Cancelling Microphone$29.99$19.99 -
Sale!
Gaming Desk with LED Lights USB Power Outlets and Charging Ports
$349.99$249.99 Select optionsGaming Desk with LED Lights USB Power Outlets and Charging Ports
SKU: N/A Categories: Computer Desk, Gaming, Gaming Desk Tags: and Charging Ports, Charging, Desk, Desks, Gaming, gaming desk with led lights, Gaming Desks with LED Lights, Home, LED, Lights, Monitor, Office, Outlets, Port, Power, Room, Stand, USB, USB Power Outlets, White, Workstation$349.99$249.99 -
Sale!
Wired Mixed Backlit Anti-Ghosting Gaming Keyboard
$99.99$79.99 Add to cartWired Mixed Backlit Anti-Ghosting Gaming Keyboard
Categories: Electronics, Gaming, Gaming Keyboards Tags: Antighosting, Backlit, Blue, brown, Gaming, Gaming Keyboard, gaming keyboards, gaming keyboards and mouse, Keyboard, Laptop, Switch, Wired, Wired Mixed Backlit Anti-Ghosting Gaming Keyboard, Wired Mixed Backlit Anti-Ghosting Gaming Keyboards, Wired Mixed Backlit Gaming Keyboard$99.99$79.99 -
Sale!
Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset
$119.99$59.99 Add to cartWireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset
Categories: Electronics, Gaming, Gaming Headsets Tags: 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset, ANC, Audio, Bluetooth, Cancellation, Ear, Earphone, gaming headset, Headphones, Headset, Hi-Res Over the Ear Headphones Headset, HiRes, Noise, Wireless, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Headphones, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headsets$119.99$59.99 -
Sale!
Wired Sports Gaming Headset Earbuds with Microphone
$19.99$9.99 Select optionsWired Sports Gaming Headset Earbuds with Microphone
SKU: N/A Categories: Gaming, Gaming Headsets Tags: Accessories, Earbud, Earphone, Earphones, Gaming, gaming headset with microphone, Headphones, Headset, IOS, Microphone, Sports, Wired, Wired Sports Gaming Headset Earbuds, Wired Sports Gaming Headset Earbuds with Microphone, Wired Sports Headset Earbuds$19.99$9.99 -
Sale!
150W Universal Multi USB Fast Charger 16 Port MAX Charging Station
$49.99$29.99 Add to cart150W Universal Multi USB Fast Charger 16 Port MAX Charging Station
Categories: Charging Stations, Electronics Tags: 150W, 150W Charging Station, 150W Universal Multi USB Charging Station, 150W Universal Multi USB Fast Charger 16 Port MAX Charging Station, 150W Universal Multi USB Fast Charger 16 Port MAX Charging Stations, 150W Universal Multi USB MAX Charging Station, 16 Port MAX Charging Station, 3.5A, Charger, Charging, Fast, laptop charging stations, Max, Multi, Port, Stand, Station, Universal, USB$49.99$29.99
Madam waiting for more videos thank you madam