What is PHP?
WordPress and Facebook are run using PHP.
PHP is the most widely used scripting language for web development. In general, scripts are short computer programs that quickly complete tasks that one person could complete one step at a time. A scripting language is the programming language used to write those short computer programs.
How is this scripting language used?
It is embedded in HTML code.
What does PHP enable web developers to do?
PHP can generate dynamic page content. It can perform actions on files that are on the server such as create, open, read, write, delete, or close. It can interact with a database by adding, deleting, and modify the data stored there. It can be used control user-access to a website or certain parts of it. It can also encrypt data.
PHP also collects form data, generates dynamic page content, and sends and receives cookies.
What is form data?
There are various forms used on websites to collect information such as login, password, name, address, e-mail address, phone number, and comments. This information is form data.
What is dynamic page content?
It is web content that changes based on the behavior, preferences, and interests that are expressed by the user.
What does it mean to generate dynamic page content?
When users select a button or a choice on a webpage and these choices are submitted, the information is sent to the server, which processes the information and then sends back a different page or section of a page based on the users’ choices.
What are Cookies?
Cookies enables the exchange of information between the browser and server to provide a customized user session, and for servers to remember the user’s past requests.
When we go to a website, the links, buttons, and choices we select as well as the information we input are recorded in a file that is stored by the browser on our computer. The next time we go to that website, this file is uploaded automatically so the website can personalize our experience.
For example, if we create a user name and password on the website, this information can be saved and used for the next time we visit that site. This facilitates our use of that website and makes the experience more enjoyable. If we have to spend too much time looking for our username and password, we may experience frustration and associate it with the use of this website. In the future, we may avoid using the site.
What does it mean to send and receive cookies?
Cookies are sent by the browser to the server when an HTTP request starts. An HTTP request is when we enter and submit a URL or keywords into the browser address bar. The request itself sends no personal information. When Cookies are sent along with the request, they edit, personalize, and control the information that is sent back to the user.
What are the advantages of using PHP?
- It runs on various types of operating systems. It’s compatible with most servers.
- It supports many different databases.
- It is easy to learn and runs efficiently on the server side.
- It’s free. You can download it from www.php.net.