What is PHP?
PHP is acronym for Hypertext Preprocessor. Programmer would think it should be HPP. An alternative explanation comes from latest version of the program ‘Personal Home Page Tools’. So we called it PHP in right order. Basically PHP was developed by Danish Greenlander Ramus and day by day it subsequently developed as an open source program. PHP is not as a real programming language. It is an open source scripting language for general purpose. It is embedded into HTML that is suited for web development. PHP offers several advanced and latest features for a professional programmer as well as do is an amazing and popular language for free to download and using, its scripts are executed on the server. PHP is most probably used to enhance web pages.
You Should also know that: -
This scripting language is very important and popular language for web server. You can do so many things with PHP such as create user name & password login pages, pictures galleries, forums, surveys and so on. You can also check details from a form with this language. PHP requested the page form on your computer but doesn’t get executed on computer. So it is called server sided language. PHP is designed for web environment to fill the gap between SSI and Perl. Here SSI is stands for Server Sided Includes. Sometimes creator has created programming code to liven up the plain, old HTML when you have come across a web page in the end of PHP. The results of making programs in this language, displayed on your browser. Other scripting languages like ASP, Python and Perl you do not need to know about requested the page form and browser to start programming. The principal application of PHP is to implementation of web pages which have dynamic content.
The syntax and simplicity of PHP programming just like C language. For better security, performance and features developer use latest version of PHP. The version of 5.5 is heavily recommended for programming. PHP enables programmer or developer to create powerful application. These applications can run a powerful website like Wikipedia, Google etc. With these applications you can publish blog and remote control hardware. For making programs in PHP you should have a basic understanding of HTML that stands for Hyper Text Markup Language. You can also have a need of database application such as MySQL. PHP also used to GUI driven applications. GUI stands for Graphics User Interface. If you are looking career in software world, PHP is easy learning and running up language for web designing, developing and web scripting.
Example:
In this example, we can see that PHP code is enclosed in starting and ending processing instructions <?php and ?>. These instructions allow you to jump into and out of PHP mode. For getting output PHP don’t need lots of commands like other HTML language such as Perl or C.
What is PHP Page?
The PHP page is a file with extension of (.php). A PHP page contains combinations of HTML tags and scripts which are run on a web server.
How PHP process?
PHP is like as client side java script. PHP code is executed on the server which generates HTML then sent to the client. The client would get the result of running scripts. You would not know what the underlying code was but you can configure your web server to process all HTML files with extension (.PHP).
Before programming in PHP you should have basic understanding of HTML, CSS and JavaScript.
HTML: - It stands for Hyper Text Markup Language. It is a set of markup tags. It is a markup language for describing web pages. HTML documents are also described by HTML tags. Each HTML tag contains different content.
CSS: - It stands for Cascading Style Sheets. CSS is known as a style language that defines layout of HTML documents. It works on how HTML documents are to be displayed.
JavaScript: - It is a dynamic computer programming language. It built into all major web browsers and used to make web pages interactive. JavaScript can interact with HTML source code.
What is PHP File?
PHP file is a combination of text, HTML, CSS, JavaScript and PHP code. Programmer executed the PHP code on the server and gets the result as plain HTML on the browser.
What PHP do?
PHP can read, write, open and close files on the server. It can also create, delete, add and modify data in your database. PHP generate dynamic page content. It can send or receive cookies and used to control user access. With PHP we can get output of any kind of text, images, PDF files and flash movies as well as XHTML and XML.
Why PHP is popular?
PHP is a very popular language now days because it runs on various platforms such as Windows, Linux, UNIX and Mac OS X. It is compatible with all type of server like Apache, IIS etc. It supports a wide range of database and easy to learn and run efficiently and accurate on the server side.
How PHP works?
(1). For HTML Page:
Client: - Hello server, I would like to see a HTML page.
Server: - Here I’ve a HTML page (HTML pages are easy and just pass them to the client).
Here the server simply sends a HTML page as per request without processing.
(2). For PHP Page:
Client: - Hello server, I would like to see a PHP page.
Server: - Hello client, just a second. I need to do some task. I send you it in HTML format (Server read the PHP page and do some work before send it to client).
Here the server firstly read the PHP file carefully and do some work on it that need to be executed. When server has done own task then result sent to the client. It is necessary to understand that client can only see the result of server’s task not actual processing.
MySQL Database:-
1). MySQL Create Database
2). MySQL Create Table
3). MySQL Select Data
4). MySQL Insert Data
5). MySQL delete Data
6). MySQL update Data
7). MySQL limit Data.
PHP Forms: -
Handling PHP Form, Validation PHP Form, Required PHP Form, URL PHP Form, E-mail PHP Form.
PHP Tutorial: -
Intro PHP, Install PHP, Home PHP, Variable PHP, Constant PHP, Data type PHP, Syntax PHP, Print PHP, Operator PHP, String PHP, Array PHP, Sorting Array PHP.
PHP Ajax: -
Intro Ajax, Database Ajax, Live search Ajax, RSS Reader Ajax.
PHP Advanced: -
Read PHP file, Create PHP file, Upload PHP, Cookies PHP, Session PHP, Filter PHP, Error handling PHP, Date and Time PHP
PHP Loops: -
If…….else Loop, Else if Loop, While Loop, For Loop
There are three SQL commands that used in PHP programming: -
1). Truncate
2). Drop
3). Delete.
These are differentiate form each other.
Truncate Command: - Truncate removes all rows from a table. It is a DDL command and much faster than delete. The operation cannot be rolled back in truncate.
To delete all rows from the student table. The SQL syntax would be like this:
TURNCATE TABLE table_name;
The query is as follow: (table name= students)
TURNCATE TABLE students;
Drop Command: - Drop removes table from the database. It is also DDL command. By using Drop Command, all rows, indexes, privileges of a table will also be removed.
To drop the table students. The SQL syntax would be like this:
DROP TABLE table_name;
The query is as follow: (table name= students)
DROP TABLE students;
Delete Command: - Delete removes only data from the table. It is a DML command. By using this command we can delete whole data from the table and deleted data can be rollback.
To delete a student with id 50 from student table. The SQL syntax would be like this:
DELETE FROM student WHERE id=50;
The query is as follow: (table name=students, student id-=50)
DELETE FROM students;
If you face any difficulty to understand this theory then feel free to contact me. i will reply you as soon as possible. Don't forget to send feedback to us.
PHP is acronym for Hypertext Preprocessor. Programmer would think it should be HPP. An alternative explanation comes from latest version of the program ‘Personal Home Page Tools’. So we called it PHP in right order. Basically PHP was developed by Danish Greenlander Ramus and day by day it subsequently developed as an open source program. PHP is not as a real programming language. It is an open source scripting language for general purpose. It is embedded into HTML that is suited for web development. PHP offers several advanced and latest features for a professional programmer as well as do is an amazing and popular language for free to download and using, its scripts are executed on the server. PHP is most probably used to enhance web pages.
You Should also know that: -
This scripting language is very important and popular language for web server. You can do so many things with PHP such as create user name & password login pages, pictures galleries, forums, surveys and so on. You can also check details from a form with this language. PHP requested the page form on your computer but doesn’t get executed on computer. So it is called server sided language. PHP is designed for web environment to fill the gap between SSI and Perl. Here SSI is stands for Server Sided Includes. Sometimes creator has created programming code to liven up the plain, old HTML when you have come across a web page in the end of PHP. The results of making programs in this language, displayed on your browser. Other scripting languages like ASP, Python and Perl you do not need to know about requested the page form and browser to start programming. The principal application of PHP is to implementation of web pages which have dynamic content.
The syntax and simplicity of PHP programming just like C language. For better security, performance and features developer use latest version of PHP. The version of 5.5 is heavily recommended for programming. PHP enables programmer or developer to create powerful application. These applications can run a powerful website like Wikipedia, Google etc. With these applications you can publish blog and remote control hardware. For making programs in PHP you should have a basic understanding of HTML that stands for Hyper Text Markup Language. You can also have a need of database application such as MySQL. PHP also used to GUI driven applications. GUI stands for Graphics User Interface. If you are looking career in software world, PHP is easy learning and running up language for web designing, developing and web scripting.
Example:
<html> <head> <title>example</title> </head> </body> <?php echo “hello! I am a web developer.”; ?> </body> </html>
In this example, we can see that PHP code is enclosed in starting and ending processing instructions <?php and ?>. These instructions allow you to jump into and out of PHP mode. For getting output PHP don’t need lots of commands like other HTML language such as Perl or C.
What is PHP Page?
The PHP page is a file with extension of (.php). A PHP page contains combinations of HTML tags and scripts which are run on a web server.
How PHP process?
PHP is like as client side java script. PHP code is executed on the server which generates HTML then sent to the client. The client would get the result of running scripts. You would not know what the underlying code was but you can configure your web server to process all HTML files with extension (.PHP).
Before programming in PHP you should have basic understanding of HTML, CSS and JavaScript.
HTML: - It stands for Hyper Text Markup Language. It is a set of markup tags. It is a markup language for describing web pages. HTML documents are also described by HTML tags. Each HTML tag contains different content.
CSS: - It stands for Cascading Style Sheets. CSS is known as a style language that defines layout of HTML documents. It works on how HTML documents are to be displayed.
JavaScript: - It is a dynamic computer programming language. It built into all major web browsers and used to make web pages interactive. JavaScript can interact with HTML source code.
What is PHP File?
PHP file is a combination of text, HTML, CSS, JavaScript and PHP code. Programmer executed the PHP code on the server and gets the result as plain HTML on the browser.
What PHP do?
PHP can read, write, open and close files on the server. It can also create, delete, add and modify data in your database. PHP generate dynamic page content. It can send or receive cookies and used to control user access. With PHP we can get output of any kind of text, images, PDF files and flash movies as well as XHTML and XML.
Why PHP is popular?
PHP is a very popular language now days because it runs on various platforms such as Windows, Linux, UNIX and Mac OS X. It is compatible with all type of server like Apache, IIS etc. It supports a wide range of database and easy to learn and run efficiently and accurate on the server side.
How PHP works?
(1). For HTML Page:
Client: - Hello server, I would like to see a HTML page.
Server: - Here I’ve a HTML page (HTML pages are easy and just pass them to the client).
Here the server simply sends a HTML page as per request without processing.
(2). For PHP Page:
Client: - Hello server, I would like to see a PHP page.
Server: - Hello client, just a second. I need to do some task. I send you it in HTML format (Server read the PHP page and do some work before send it to client).
Here the server firstly read the PHP file carefully and do some work on it that need to be executed. When server has done own task then result sent to the client. It is necessary to understand that client can only see the result of server’s task not actual processing.
MySQL Database:-
1). MySQL Create Database
2). MySQL Create Table
3). MySQL Select Data
4). MySQL Insert Data
5). MySQL delete Data
6). MySQL update Data
7). MySQL limit Data.
PHP Forms: -
Handling PHP Form, Validation PHP Form, Required PHP Form, URL PHP Form, E-mail PHP Form.
PHP Tutorial: -
Intro PHP, Install PHP, Home PHP, Variable PHP, Constant PHP, Data type PHP, Syntax PHP, Print PHP, Operator PHP, String PHP, Array PHP, Sorting Array PHP.
PHP Ajax: -
Intro Ajax, Database Ajax, Live search Ajax, RSS Reader Ajax.
PHP Advanced: -
Read PHP file, Create PHP file, Upload PHP, Cookies PHP, Session PHP, Filter PHP, Error handling PHP, Date and Time PHP
PHP Loops: -
If…….else Loop, Else if Loop, While Loop, For Loop
There are three SQL commands that used in PHP programming: -
1). Truncate
2). Drop
3). Delete.
These are differentiate form each other.
Truncate Command: - Truncate removes all rows from a table. It is a DDL command and much faster than delete. The operation cannot be rolled back in truncate.
To delete all rows from the student table. The SQL syntax would be like this:
TURNCATE TABLE table_name;
The query is as follow: (table name= students)
TURNCATE TABLE students;
Drop Command: - Drop removes table from the database. It is also DDL command. By using Drop Command, all rows, indexes, privileges of a table will also be removed.
To drop the table students. The SQL syntax would be like this:
DROP TABLE table_name;
The query is as follow: (table name= students)
DROP TABLE students;
Delete Command: - Delete removes only data from the table. It is a DML command. By using this command we can delete whole data from the table and deleted data can be rollback.
To delete a student with id 50 from student table. The SQL syntax would be like this:
DELETE FROM student WHERE id=50;
The query is as follow: (table name=students, student id-=50)
DELETE FROM students;
If you face any difficulty to understand this theory then feel free to contact me. i will reply you as soon as possible. Don't forget to send feedback to us.
0 comments :
Post a Comment