PHP Introduction
PHP was developed by Rasmus Lerdorf in 1994, but only appeared on the market in 1995. PHP is an open source, interpreted, object-oriented scripting language that runs on the server side. PHP script can be placed anywhere in the document. PHP is suitable for web development. Therefore, it is used to develop web applications (applications that run on a server and generate dynamic pages).
What is PHP?
- PHP stands for Hypertext Preprocessor.
- PHP is a server-side scripting language used to manage dynamic content on websites.
- PHP is faster than other scripting languages such as ASP and JSP.
- PHP can be embedded in HTML.
- PHP is a simple and easy to learn language.
What is a PHP File?
- The extension of PHP files is ".php"
- PHP files can contain text, HTML, CSS, JavaScript, and PHP code
- PHP code runs on the server and the results are returned to the browser as plain HTML.
Why use PHP?
- PHP can generate dynamic page content.
- PHP can send and receive cookies.
- PHP allows you to add, delete, and modify data in a database.
- You can control user access using PHP can encrypt data.
- PHP supports multiple protocols such as HTTP, POP3, SNMP, LDAP, and IMAP.