SlideShare a Scribd company logo
5
Most read
7
Most read
9
Most read
WEB TECHNOLOGIES-
PHP Programming
Dr R Jegadeesan Prof-CSE
Jyothishmathi Institute of Technology and Science,
karimnagar
Syllabus
PHP Programming
Introduction to PHP: Declaring variables, data
types, arrays, strings, operators, expressions,
control structures, functions, Reading data from
web form controls like text boxes, radio buttons,
lists etc., Handling File Uploads, Connecting to
database (MySQL as reference), executing simple
queries, handling results, Handling sessions and
cookies File Handling in PHP: File operations like
opening, closing, reading, writing, appending,
deleting etc. on text and binary files, listing
directories
2
UNIT 1 : PHP Programming
Aim & Objective :
➢ To introduce PHP language for Server Side scripting.
➢ PHP file upload features allows you to upload binary and text files both.
Moreover, you can have the full control over the file to be uploaded
through PHP authentication and file operation functions.
PHP File Uploads
3
UNIT 1 : PHP Programming
Principles of File Upload:
➢ PHP allows you to upload single and multiple files through few lines of
code only.
➢PHP file upload facilities allows you to upload both type of files : binary and
text files. Moreover, you can have the full control over the file to be uploaded
through PHP authentication and file operation functions.
PHP File Uploads
4
UNIT 1 : PHP Programming
PHP $_FILES
➢ The PHP global $_FILES contains all the information of file.
➢ $_FILES contains 5 elements. Each elements first dimension is name of the
upload control.
➢ By the help of $_ FILES global, we can get file name, file type, file size, temp
file name and errors associated with file.
PHP File Uploads
5
UNIT 1 : PHP Programming
PHP File Uploads
6
UNIT 1 : PHP Programming
Elements of $_FILES
we are assuming that file name is jits.
$_FILES[‘jits']['name']
returns file name.
$_FILES[‘jits’]['type']
returns MIME type of the file. Ex: application /pdf, image/jpg
$_FILES[‘jits']['size']
returns size of the file (in bytes).
$_FILES[‘jits']['tmp_name']
returns temporary file name of the file which was stored on the server.
$_FILES[‘jits']['error']
returns error code associated with this file.
PHP File Uploads
7
UNIT 1 : PHP Programming
is_uploaded_file() Function
➢By using this function, we can check whether the file is uploaded from client system to
server temporary location or not.
move_uploaded_file() function
➢The move_uploaded_file() function moves the uploaded file to a new location.
➢The move_uploaded_file() function checks internally if the file is uploaded through the
POST request. It moves the file if it is uploaded through the POST request.
PHP File Uploads
8
UNIT 1 : PHP Programming
Example :File Uploading
<html>
<body>
<form action="server_uploaded.php" method="POST" enctype= "multipart/form-data">
<input type="file" name="myfile" />
<input type="submit" value="Upload" />
</form>
</body>
</html>
PHP File Uploads
9
UNIT 1 : PHP Programming
<?php
if(is_uploaded_file($_FILES['myfile']['tmp_name']))
{
$fname=$_FILES['myfile']['name'];
if(move_uploaded_file($_FILES['myfile']['tmp_name'],"myfolder/$fname"))
{
echo "<b>$fname file is sucessfully uploaded <br><br>";
echo "Name of the Uploaded file is ". $_FILES['myfile']['name']. "<br>";
echo "Size of the file is :". $_FILES['myfile']['size']."<br>";
echo "tmp name of the file is :". $_FILES['myfile']['tmp_name']."<br>";
echo "Type of the file is :". $_FILES['myfile']['type'];
}
else
echo "file is not uploaded";
}
else
echo "not";
?>
PHP File Uploads
10
UNIT 1 : PHP Programming
PHP configuration init files
11
UNIT 1 : PHP Programming
PHP Configurations
12
UNIT 1 : PHP Programming
How PHP works
13
UNIT 1 : PHP Programming
PHP code
14
UNIT 1 : PHP Programming
PHP Text & Reference Books
15
Book Details :
TEXT BOOKS:
1. Web Technologies, Uttam K Roy, Oxford University Press
2. The Complete Reference PHP – Steven Holzner, Tata McGraw-Hill
REFERENCE BOOKS:
1.Web Programming, building internet applications, Chris Bates 2nd edition, Wiley Dreamtech
2. Java Server Pages –Hans Bergsten, SPD O’Reilly
3. Java Script, D. Flanagan, O’Reilly,SPD.
4. Beginning Web Programming-Jon Duckett WROX.
5. Programming World Wide Web, R. W. Sebesta, Fourth Edition, Pearson.
6. Internet and World Wide Web – How to program, Dietel and Nieto, Pearson.
UNIT 1 : PHP Programming
PHP Video reference
16
Video Link details (NPTEL, YOUTUBE Lectures and etc.)
https://nptel.ac.in/courses/106105084/
https://freevideolectures.com/course/3140/internet-technologies
https://www.btechguru.com/GATE--computer-science-and-engineering--web-technologies-
video-lecture--22--132.html
UNIT 1 : PHP Programming
PHP courses
17
courses available on <www.coursera.org>, and http://neat.aicte-india.org
https://www.coursera.org/
Course 1 : Web Applications for Everybody Specialization
Build dynamic database-backed web sites.. Use PHP, MySQL, jQuery, and Handlebars to build web
and database applications.
Course 2: Web Design for Everybody: Basics of Web Development & Coding Specialization
Learn to Design and Create Websites. Build a responsive and accessible web portfolio using
HTML5, CSS3, and JavaScript
UNIT 1 : PHP Programming
PHP Tutorials
18
Tutorial topic wise
➢https://www.w3schools.com/PHP/DEfaULT.asP
➢https://www.phptpoint.com/php-tutorial/
➢https://www.tutorialspoint.com/php/index.htm
UNIT 1 : PHP Programming
PHP MCQs
19
PHP – MCQs
1. What does PHP stand for?
i) Personal Home Page ii) Hypertext Preprocessor
iii) Pretext Hypertext Processor iv) Preprocessor Home Page
A. Both (i) and (ii) B. Both (ii) and (iv) C. Only (ii) D. Both (i) and (iii)
2. PHP files have a default file extension of.
A. .html B. .xml C. .php D. .ph
3. A PHP script should start with ---- and end with----:
A. < php > B. < ? php ?> C. < ? ? > D. < ?php ? >
4. Which of the looping statements is/are supported by PHP?
i) for loop ii) while loop iii) do-while loop iv) foreach loop
A. (i) and (ii) B. (i), (ii) and (iii)
C. All of the mentioned
D. None of the mentioned
UNIT 1 : PHP Programming
PHP Tutorial
20
PHP –Tutorial Problems:
1.Write a php program to read employee details
2.Write aphp program to uploads files to remote directory
UNIT 1 : PHP Programming
PHP Questions
21
PHP –universities & Important Questions:
1.What are the different types of errors in PHP?
2.What is the functionality of the function strstr and stristr?
3. Explain about various data types in PHP.
4. Explain about Arrays in PHP.
5. List and Explain the string functions in PHP.
6. List the statements that are used to connect PHP with MySQL.
7.How PHP is different from PHP Script? Explain.
8. Explain PHP form processing with an example.
9.How can I retrieve values from one database server and store them in other database server
using PHP?
10. What are the differences between Get and post methods in form submitting. Give the case
where we can use get and we can use post methods?
Thank you
22

More Related Content

What's hot (20)

PPT
PHP complete reference with database concepts for beginners
Mohammed Mushtaq Ahmed
 
PPT
Php mysql ppt
Karmatechnologies Pvt. Ltd.
 
PPTX
Client side scripting using Javascript
Bansari Shah
 
PPTX
Php string function
Ravi Bhadauria
 
PPT
Web Page Authoring 1
yht4ever
 
PPTX
Lab #2: Introduction to Javascript
Walid Ashraf
 
PPT
CSS Basics
WordPress Memphis
 
PPTX
Document Object Model (DOM)
GOPAL BASAK
 
PPTX
Html and css
Sukrit Gupta
 
PPTX
Cascading Style Sheet (CSS)
AakankshaR
 
PDF
Basic JavaScript Tutorial
DHTMLExtreme
 
PPT
Javascript dom event
Bunlong Van
 
PDF
JavaScript - Chapter 11 - Events
WebStackAcademy
 
PPTX
Javascript event handler
Jesus Obenita Jr.
 
PDF
Introduction to html
eShikshak
 
PPTX
An Introduction to the DOM
Mindy McAdams
 
PPTX
Html notes with Examples
isha
 
PDF
Intro to HTML & CSS
Syed Sami
 
PHP complete reference with database concepts for beginners
Mohammed Mushtaq Ahmed
 
Client side scripting using Javascript
Bansari Shah
 
Php string function
Ravi Bhadauria
 
Web Page Authoring 1
yht4ever
 
Lab #2: Introduction to Javascript
Walid Ashraf
 
CSS Basics
WordPress Memphis
 
Document Object Model (DOM)
GOPAL BASAK
 
Html and css
Sukrit Gupta
 
Cascading Style Sheet (CSS)
AakankshaR
 
Basic JavaScript Tutorial
DHTMLExtreme
 
Javascript dom event
Bunlong Van
 
JavaScript - Chapter 11 - Events
WebStackAcademy
 
Javascript event handler
Jesus Obenita Jr.
 
Introduction to html
eShikshak
 
An Introduction to the DOM
Mindy McAdams
 
Html notes with Examples
isha
 
Intro to HTML & CSS
Syed Sami
 

Similar to WEB TECHNOLOGIES- PHP Programming (20)

PPTX
php Chapter 1.pptx
HambaAbebe2
 
PPT
PHP
sometech
 
PPTX
Php Unit 1
team11vgnt
 
PDF
Introduction of PHP.pdf
karinaabyys
 
PPTX
Unit 5-PHP Declaring variables, data types, array, string, operators, Expres...
DRambabu3
 
PPT
Intro to PHP for Students and professionals
cuyak
 
PPT
PHP - Introduction to PHP Fundamentals
Vibrant Technologies & Computers
 
PDF
Introduction to PHP - Basics of PHP
wahidullah mudaser
 
PDF
WT_PHP_PART1.pdf
HambardeAtharva
 
PDF
Introduction to php
Anjan Banda
 
PDF
Php Interview Questions
UmeshSingh159
 
PPT
Php mysql
Ajit Yadav
 
PPSX
PHP Comprehensive Overview
Mohamed Loey
 
PPTX
PHP ITCS 323
Sleepy Head
 
PPTX
php.pptx
nusky ahamed
 
PPT
10_introduction_php.ppt
MercyL2
 
PPT
introduction_php.ppt
ArunKumar313658
 
PPTX
INTRODUCTION to php.pptx
priyanshupanchal8
 
PPT
Introduction to web and php mysql
Programmer Blog
 
php Chapter 1.pptx
HambaAbebe2
 
Php Unit 1
team11vgnt
 
Introduction of PHP.pdf
karinaabyys
 
Unit 5-PHP Declaring variables, data types, array, string, operators, Expres...
DRambabu3
 
Intro to PHP for Students and professionals
cuyak
 
PHP - Introduction to PHP Fundamentals
Vibrant Technologies & Computers
 
Introduction to PHP - Basics of PHP
wahidullah mudaser
 
WT_PHP_PART1.pdf
HambardeAtharva
 
Introduction to php
Anjan Banda
 
Php Interview Questions
UmeshSingh159
 
Php mysql
Ajit Yadav
 
PHP Comprehensive Overview
Mohamed Loey
 
PHP ITCS 323
Sleepy Head
 
php.pptx
nusky ahamed
 
10_introduction_php.ppt
MercyL2
 
introduction_php.ppt
ArunKumar313658
 
INTRODUCTION to php.pptx
priyanshupanchal8
 
Introduction to web and php mysql
Programmer Blog
 
Ad

More from Jyothishmathi Institute of Technology and Science Karimnagar (20)

PDF
JAVA PROGRAMMING- GUI Programming with Swing - The Swing Buttons
Jyothishmathi Institute of Technology and Science Karimnagar
 
PDF
JAVA PROGRAMMING - The Collections Framework
Jyothishmathi Institute of Technology and Science Karimnagar
 
PDF
JAVA PROGRAMMING- Exception handling - Multithreading
Jyothishmathi Institute of Technology and Science Karimnagar
 
PDF
JAVA PROGRAMMING – Packages - Stream based I/O
Jyothishmathi Institute of Technology and Science Karimnagar
 
PDF
Java programming -Object-Oriented Thinking- Inheritance
Jyothishmathi Institute of Technology and Science Karimnagar
 
PDF
Compiler Design- Machine Independent Optimizations
Jyothishmathi Institute of Technology and Science Karimnagar
 
PDF
COMPILER DESIGN Run-Time Environments
Jyothishmathi Institute of Technology and Science Karimnagar
 
PDF
COMPILER DESIGN- Syntax Directed Translation
Jyothishmathi Institute of Technology and Science Karimnagar
 
PDF
COMPILER DESIGN- Introduction & Lexical Analysis:
Jyothishmathi Institute of Technology and Science Karimnagar
 
PPTX
CRYPTOGRAPHY AND NETWORK SECURITY- E-Mail Security
Jyothishmathi Institute of Technology and Science Karimnagar
 
PDF
CRYPTOGRAPHY AND NETWORK SECURITY- Transport-level Security
Jyothishmathi Institute of Technology and Science Karimnagar
 
PDF
CRYPTOGRAPHY & NETWORK SECURITY- Cryptographic Hash Functions
Jyothishmathi Institute of Technology and Science Karimnagar
 
PDF
CRYPTOGRAPHY & NETWOK SECURITY- Symmetric key Ciphers
Jyothishmathi Institute of Technology and Science Karimnagar
 
PDF
Computer Forensics Working with Windows and DOS Systems
Jyothishmathi Institute of Technology and Science Karimnagar
 
JAVA PROGRAMMING- GUI Programming with Swing - The Swing Buttons
Jyothishmathi Institute of Technology and Science Karimnagar
 
JAVA PROGRAMMING - The Collections Framework
Jyothishmathi Institute of Technology and Science Karimnagar
 
JAVA PROGRAMMING- Exception handling - Multithreading
Jyothishmathi Institute of Technology and Science Karimnagar
 
JAVA PROGRAMMING – Packages - Stream based I/O
Jyothishmathi Institute of Technology and Science Karimnagar
 
Java programming -Object-Oriented Thinking- Inheritance
Jyothishmathi Institute of Technology and Science Karimnagar
 
Compiler Design- Machine Independent Optimizations
Jyothishmathi Institute of Technology and Science Karimnagar
 
COMPILER DESIGN- Syntax Directed Translation
Jyothishmathi Institute of Technology and Science Karimnagar
 
COMPILER DESIGN- Introduction & Lexical Analysis:
Jyothishmathi Institute of Technology and Science Karimnagar
 
CRYPTOGRAPHY AND NETWORK SECURITY- E-Mail Security
Jyothishmathi Institute of Technology and Science Karimnagar
 
CRYPTOGRAPHY AND NETWORK SECURITY- Transport-level Security
Jyothishmathi Institute of Technology and Science Karimnagar
 
CRYPTOGRAPHY & NETWORK SECURITY- Cryptographic Hash Functions
Jyothishmathi Institute of Technology and Science Karimnagar
 
CRYPTOGRAPHY & NETWOK SECURITY- Symmetric key Ciphers
Jyothishmathi Institute of Technology and Science Karimnagar
 
Computer Forensics Working with Windows and DOS Systems
Jyothishmathi Institute of Technology and Science Karimnagar
 
Ad

Recently uploaded (20)

PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PPTX
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 

WEB TECHNOLOGIES- PHP Programming

  • 1. WEB TECHNOLOGIES- PHP Programming Dr R Jegadeesan Prof-CSE Jyothishmathi Institute of Technology and Science, karimnagar
  • 2. Syllabus PHP Programming Introduction to PHP: Declaring variables, data types, arrays, strings, operators, expressions, control structures, functions, Reading data from web form controls like text boxes, radio buttons, lists etc., Handling File Uploads, Connecting to database (MySQL as reference), executing simple queries, handling results, Handling sessions and cookies File Handling in PHP: File operations like opening, closing, reading, writing, appending, deleting etc. on text and binary files, listing directories 2
  • 3. UNIT 1 : PHP Programming Aim & Objective : ➢ To introduce PHP language for Server Side scripting. ➢ PHP file upload features allows you to upload binary and text files both. Moreover, you can have the full control over the file to be uploaded through PHP authentication and file operation functions. PHP File Uploads 3
  • 4. UNIT 1 : PHP Programming Principles of File Upload: ➢ PHP allows you to upload single and multiple files through few lines of code only. ➢PHP file upload facilities allows you to upload both type of files : binary and text files. Moreover, you can have the full control over the file to be uploaded through PHP authentication and file operation functions. PHP File Uploads 4
  • 5. UNIT 1 : PHP Programming PHP $_FILES ➢ The PHP global $_FILES contains all the information of file. ➢ $_FILES contains 5 elements. Each elements first dimension is name of the upload control. ➢ By the help of $_ FILES global, we can get file name, file type, file size, temp file name and errors associated with file. PHP File Uploads 5
  • 6. UNIT 1 : PHP Programming PHP File Uploads 6
  • 7. UNIT 1 : PHP Programming Elements of $_FILES we are assuming that file name is jits. $_FILES[‘jits']['name'] returns file name. $_FILES[‘jits’]['type'] returns MIME type of the file. Ex: application /pdf, image/jpg $_FILES[‘jits']['size'] returns size of the file (in bytes). $_FILES[‘jits']['tmp_name'] returns temporary file name of the file which was stored on the server. $_FILES[‘jits']['error'] returns error code associated with this file. PHP File Uploads 7
  • 8. UNIT 1 : PHP Programming is_uploaded_file() Function ➢By using this function, we can check whether the file is uploaded from client system to server temporary location or not. move_uploaded_file() function ➢The move_uploaded_file() function moves the uploaded file to a new location. ➢The move_uploaded_file() function checks internally if the file is uploaded through the POST request. It moves the file if it is uploaded through the POST request. PHP File Uploads 8
  • 9. UNIT 1 : PHP Programming Example :File Uploading <html> <body> <form action="server_uploaded.php" method="POST" enctype= "multipart/form-data"> <input type="file" name="myfile" /> <input type="submit" value="Upload" /> </form> </body> </html> PHP File Uploads 9
  • 10. UNIT 1 : PHP Programming <?php if(is_uploaded_file($_FILES['myfile']['tmp_name'])) { $fname=$_FILES['myfile']['name']; if(move_uploaded_file($_FILES['myfile']['tmp_name'],"myfolder/$fname")) { echo "<b>$fname file is sucessfully uploaded <br><br>"; echo "Name of the Uploaded file is ". $_FILES['myfile']['name']. "<br>"; echo "Size of the file is :". $_FILES['myfile']['size']."<br>"; echo "tmp name of the file is :". $_FILES['myfile']['tmp_name']."<br>"; echo "Type of the file is :". $_FILES['myfile']['type']; } else echo "file is not uploaded"; } else echo "not"; ?> PHP File Uploads 10
  • 11. UNIT 1 : PHP Programming PHP configuration init files 11
  • 12. UNIT 1 : PHP Programming PHP Configurations 12
  • 13. UNIT 1 : PHP Programming How PHP works 13
  • 14. UNIT 1 : PHP Programming PHP code 14
  • 15. UNIT 1 : PHP Programming PHP Text & Reference Books 15 Book Details : TEXT BOOKS: 1. Web Technologies, Uttam K Roy, Oxford University Press 2. The Complete Reference PHP – Steven Holzner, Tata McGraw-Hill REFERENCE BOOKS: 1.Web Programming, building internet applications, Chris Bates 2nd edition, Wiley Dreamtech 2. Java Server Pages –Hans Bergsten, SPD O’Reilly 3. Java Script, D. Flanagan, O’Reilly,SPD. 4. Beginning Web Programming-Jon Duckett WROX. 5. Programming World Wide Web, R. W. Sebesta, Fourth Edition, Pearson. 6. Internet and World Wide Web – How to program, Dietel and Nieto, Pearson.
  • 16. UNIT 1 : PHP Programming PHP Video reference 16 Video Link details (NPTEL, YOUTUBE Lectures and etc.) https://nptel.ac.in/courses/106105084/ https://freevideolectures.com/course/3140/internet-technologies https://www.btechguru.com/GATE--computer-science-and-engineering--web-technologies- video-lecture--22--132.html
  • 17. UNIT 1 : PHP Programming PHP courses 17 courses available on <www.coursera.org>, and http://neat.aicte-india.org https://www.coursera.org/ Course 1 : Web Applications for Everybody Specialization Build dynamic database-backed web sites.. Use PHP, MySQL, jQuery, and Handlebars to build web and database applications. Course 2: Web Design for Everybody: Basics of Web Development & Coding Specialization Learn to Design and Create Websites. Build a responsive and accessible web portfolio using HTML5, CSS3, and JavaScript
  • 18. UNIT 1 : PHP Programming PHP Tutorials 18 Tutorial topic wise ➢https://www.w3schools.com/PHP/DEfaULT.asP ➢https://www.phptpoint.com/php-tutorial/ ➢https://www.tutorialspoint.com/php/index.htm
  • 19. UNIT 1 : PHP Programming PHP MCQs 19 PHP – MCQs 1. What does PHP stand for? i) Personal Home Page ii) Hypertext Preprocessor iii) Pretext Hypertext Processor iv) Preprocessor Home Page A. Both (i) and (ii) B. Both (ii) and (iv) C. Only (ii) D. Both (i) and (iii) 2. PHP files have a default file extension of. A. .html B. .xml C. .php D. .ph 3. A PHP script should start with ---- and end with----: A. < php > B. < ? php ?> C. < ? ? > D. < ?php ? > 4. Which of the looping statements is/are supported by PHP? i) for loop ii) while loop iii) do-while loop iv) foreach loop A. (i) and (ii) B. (i), (ii) and (iii) C. All of the mentioned D. None of the mentioned
  • 20. UNIT 1 : PHP Programming PHP Tutorial 20 PHP –Tutorial Problems: 1.Write a php program to read employee details 2.Write aphp program to uploads files to remote directory
  • 21. UNIT 1 : PHP Programming PHP Questions 21 PHP –universities & Important Questions: 1.What are the different types of errors in PHP? 2.What is the functionality of the function strstr and stristr? 3. Explain about various data types in PHP. 4. Explain about Arrays in PHP. 5. List and Explain the string functions in PHP. 6. List the statements that are used to connect PHP with MySQL. 7.How PHP is different from PHP Script? Explain. 8. Explain PHP form processing with an example. 9.How can I retrieve values from one database server and store them in other database server using PHP? 10. What are the differences between Get and post methods in form submitting. Give the case where we can use get and we can use post methods?