PHP Introduction You should have the basic knowledge
What is PHP?
PHP (foreign name: Php:hypertext Preprocessor, Chinese name: "Hypertext Preprocessor") is a common open source scripting language. The grammar absorbs the C language, Java and Perl features, is conducive to learning, widely used, mainly for the field of web development. PHP's unique syntax mixes the syntax of C, Java, Perl, and PHP's own creation. It can execute Dynamic Web pages more quickly than CGI or Perl. Dynamic pages made in PHP are compared to other programming languages, and PHP is executed in HTML (an application under the standard Universal Markup Language), which is much more efficient than CGI, which generates HTML markup entirely; PHP can also execute compiled code, which can be compiled to achieve Encrypt and optimize code runs, making your code run faster.
PHP Development Tools
- Zend Studio: Commercial Edition, Zend official, based on eclipse
- Eclipse with PDT: free
- Coda: Commercial edition, for Mac users
- NetBeans: Free, powerful
- PHP Storm: Business Edition
- Aptana Studio: Free
- Phped: Commercial Edition
- Komodo Ide/edit:ide is a commercial version, Edit is free to use
- Adobe Dreamweaver: Business Edition
What can PHP do?
- PHP can generate dynamic page content
- PHP can create, open, read, write, and close files on the server
- PHP can collect form data
- PHP can send and receive cookies
- PHP can add, delete, and modify data in your database
- PHP can restrict users from accessing some pages on your site
- PHP can encrypt data
Why use PHP?
- PHP can be run on different platforms (Windows, Linux, Unix, Mac OS X, etc.)
- PHP is compatible with almost all servers currently in use (Apache, IIS, etc.)
- PHP provides a wide range of database support
- PHP is free and can be downloaded from the official PHP resources: www.php.net
- PHP is easy to learn and runs efficiently on the server side
Example one, output Hello world!
<!DOCTYPE html>echo "Hello World!"; </body>
Example Two, PHP knowledge flowchart PHP Phase A Web Working principle PHP Environment Build PHP open Source project html+css PHP phase Two syntax data structure array object extension SQL session cache PHP Small Project PHP phase Three object-oriented Advanced MYSQLPDO algorithm encapsulation framework template engine PHP advanced project PHP phase four container Message Queuing Elasticsearch,redis optimize Security Large web site solution geumcheon PHP Tutorial
- Introduction to PHP
- PHP Installation
- PHP syntax
- PHP Data type
- PHP variables
- PHP operators
- PHP Process Control
- PHP functions
- PHP Classes and objects
- PHP string
- PHP Regular Expression display
- PHP file
- PHP Graphics Images
- Phpxml
- PHP Session Cache
- PHP Exception Handling
- PHP Database
- PHP Date Time stamp
- PHP Code Style Specification
Introduction to PHP