Php study notes page 1/2 _ PHP Tutorial

Source: Internet
Author: User
Tags mysql manual php development environment
Php learning notes page 1. PHP Overview: php is short for HypertextPreprocessor (Hypertext Preprocessor). It is a server-side, cross-platform, and HTML embedded scripting language. its unique syntax combines the C language and j php overview:
Php is short for Hypertext Preprocessor. it is a server-side, cross-platform, and HTML embedded scripting language, its unique syntax combines the features of C, Java, and Perl. it is a widely used open-source multi-purpose scripting language,
Especially suitable for web development. Php is a B/s architecture and a three-tier structure. After the service is started, users can browse through the browser without using the corresponding client software. This saves the graphical user interface and greatly reduces the amount of application maintenance. Php originated from free software, that is, open source software,
Using php for web application development features high security, cross-platform features, support for a wide range of databases, easy to learn, fast execution, low cost, templated, support for object-oriented, embedded Zend acceleration engine, stable and fast performance. Ranking No. 1 in Tianyi world programming rankings
3. the market share is 9.977%.
PHP Extension Library:
Since php5, the built-in standard extension Library: XML extension Library-DOM is added, simpleXML, SPL, SQLite, and libraries such as MySql, MySqlI, Overload, and GD2 are put in the external extension library of PECL, which is required in php. select to load the ini configuration file. Php search extension Library
The default position in PHP5 is C: \ php5. To modify this item to comply with your php settings, you need to edit the php. ini file: you need to modify the extension_dir setting to point to the directory where the user places the extension Library or the location where the php _ *. dll file is placed. Example: extension_dir = C
: \ Php \ extensions; in php. to enable an extension Library in ini, remove this line of extension = php _*. delete the semicolon (;) before the extension Library is loaded. for example, enable the Bzip2 Extension Library. Modify the following code: extension = php_bz2.dll
Extension = php_bz2.dll;
Preparations:
1. HTML (Hypertext Markup Language) web development cornerstone
2. Javascript, client scripting language, or script programs executed on the server.
Basic website construction process:
Determine the website subject (main content:) --> collect materials --> plan the website (structure, layout, color matching, style, etc) --> select a development tool --> Create a webpage (large, small, and complex) --> test a website --> upload a website --> promote a promotion --> maintain
Update protection --> confirm the website subject.
Php learning resources:
Development tools download site: http://www.jb51.net
Php user manual official website: http://www.php.net
Common website resources:
Phpchina open source community: http://www.phpchina.com

How to learn PHP well:
1. define your learning objectives and General Directions.
2. Learn to configure the php development environment
3. have a solid foundation to understand programming knowledge and master common functions.
4. understand the design mode.
5. practice, think, and consult more.
6. learn the technology is the most taboo and impatient. if you encounter technical problems, you must calmly treat them.
7. for thousands of php functions, download a Chinese php manual and a MySql manual.
8. read more video recordings to understand others' programming ideas.
9. develop good programming habits.
10. don't give up when you encounter problems. be persistent and persistent.

Php configuration is a bit complicated. it was not successfully configured for half a day last night! I have to find a simpler solution: WampServer 5 Integrated Environment

Wamp5 is an integrated environment of Apache + PHP + Mysql in Windows, with simple graphics and
Menu installation. This version integrates PHP5.2.5 Mysql5 Apache2 phpMyAdmin 2.11.2.1
SQLiteManager 1.2.0 meets most PHPer requirements.

In terms of syntax, the PHP language is similar to the C language. It can be said that PHP is based on the syntax features of the C language and changed from the C language
And then. We can mix PHP code and HTML code, not only can embed PHP scripts into HTML
File, we can even embed HTML tags in PHP scripts. The following are several methods you can use.
You can choose one of the most suitable and stick to this method!
Separating from HTML
You can use the following methods:





Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.