PHP(CORE) part 1
What is PHP?
PHP is open source server-side programming /scripting language that is especially suited for web development and can be embedded into HTML.
PHP stands for Hyper text Preprocessor but it's original name, personal home page. It was created by Ramsum Lerdorf in 1994.
PHP runs on various platforms windows, Linux, Unix, Mac OS X, etc.
Php is compatible with almost all servers Apache, IIS, etc. PHP file Extension .php you can convert your site into a web application, not just a collection of static web pages with information that may not get updated, quite so often.
What we can do with php?
- Generate dynamic page
- Handle button clicks, radio button
- Create database Application
- Client /server Application
- Student Registration
- online course
- online shopping card
- chat rooms
<!document html>
<html>
<body>
<?php
echo "Secret, Mind";
?>
</body>
</html>
save file my
file.php
Client and server
Client:- A client is a piece of computer hardware or software that accesses a service made available by a server. For example, web browsers are client that connect to web servers and retrieve web pages for display.
Server:- A server is a computer program or a device that provides functionality for other programs device, called ,"Clients".
Client server Architecture
2-Teir Architecture :- A2 Tier Architecture is where a client talks directly to a server.
Client server Architecture
2-Teir Architecture :- A2 Tier Architecture is where a client talks directly to a server.
3-Tier Architecture:- A middle-ware is used.
Most Important MCQ questions
1. What does PHP stand for?
i) Personal Home Page
ii) Hypertext Preprocessor
iii) Pretext Hypertext Processor
iv) Preprocessor Home Page
Answer:- 2
2.what is original name of PHP?
i) Personal Home Page
ii) Hypertext Preprocessor
iii) Pretext Hypertext Processor
iv) Preprocessor Home Page
Answer:- 1
3. Who is the father of PHP?
A. Rasmus Lerdorf
B. Willam Makepiece
C. Drek Kolkevi
D. List Barely
Answer:- A
4. PHP files have a default file extension of.
A. .html
B. .xml
C. .php
D. .ph
Answer:- c
5. A PHP script should start with ___ and end with ___:
Answer:- D
secret mind |
ليست هناك تعليقات:
إرسال تعليق
Please do not enter any spam link in the comment box.