PHP Overview:
PHP is a hypertext preprocessor (hypertext preprocessor) abbreviation, is a server-side, cross-platform, HTML embedded scripting language, its unique syntax mixed with the C language, the Java language and the characteristics of the Perl language, is a widely used, open-source, multi-purpose scripting language,
Especially suitable for web development. PHP is the b/s architecture, which belongs to the three layer structure. After the service starts, the user does not use the corresponding client software, only browser browsing is possible, that is, save the graphical user interface, but also greatly reduce the amount of application maintenance. PHP is originated from free software, ie, open source software,
The development of Web applications using PHP has the advantages of high security, cross-platform features, broad database support, easy to learn, fast execution, low cost, templating, support object-oriented, embedded Zend acceleration engine, stable and fast performance. Ranked in the Tiobe World programming leaderboard
Third, the market share of 9.977%.
PHP Extension Library:
Starting with PHP5, a built-in standard extension Library was added: XML extension Libraries-dom,simplexml, SPL, SQLite, and so on, such as MySQL, Mysqli, overload, GD2, etc., are placed in the PECL external extension library, Optional loading in the php.ini configuration file when needed. PHP Search Extension Library
The default location in PHP5 is C:\PHP5. To modify this to conform to the user's own PHP settings, you need to edit the php.ini file: You need to modify the Extension_dir settings to point to the directory where the user placed the extension library or where the Php_*.dll file is placed. Example: Extension_dir=c
: \php\extensions; To enable an extension library in php.ini, you need to remove the comment symbol for the line extension=php_*.dll prefix, delete the semicolon (;) before you want to load the extension library, for example, enable the BZIP2 extension library. Change the following code; Extension=php_bz2.dll
into Extension=php_bz2.dll;
Pre-preparatory work:
1.HTML (hypertext Markup Language, Hyper-text markup Language) Web development Cornerstone
2.Javascript, the Client scripting language, can also write scripts executed on the server side.
Basic process of website construction:
Determine website Theme (main content: Daquan)--collect materials--planning site (structure, layout, color collocation, style, etc.)--Choose development tools--make Web pages (first big after small "structure", simple after complex)--test Site-- Upload a website--promote---dimension
To determine the site theme.
PHP Learning Resources:
Development Tools Download Website: http://www.jb51.net
PHP User Manual official website: http://www.php.net
Common site Resources:
Phpchina Open Source Community: http://www.phpchina.com
How to learn PHP well:
1. Clear your learning goals and the direction of the big.
2. Learn to configure PHP development environment
3. A solid foundation to understand programming knowledge, master common functions.
4. Understand the design pattern.
5. More practice, more thinking, more advice.
6. The most taboo and impatient, technical problems, must be calmly treated.
7.php function Thousands of, download a php chinese manual and MySQL manual.
8. Watch the video, and understand the other people's programming ideas.
9. Develop good programming habits.
10. Do not give up the problem, to have perseverance, perseverance of the spirit.
PHP configuration is a bit complicated, last night configuration of half a day has not been successful! have to find a simpler solution: Wampserver 5 Integrated environment
WAMP5 is an integrated environment for apache+php+mysql under Windows, with simple graphics and
Menu installation. This version integrates the PHP5.2.5 Mysql5 Apache2 phpMyAdmin 2.11.2.1
Sqlitemanager 1.2.0 is full of the needs of most phper.
Syntactically, the PHP language is similar to the C language. It can be said that PHP is a reference to C language grammatical features, changed from C language
And then come. We can mix PHP code and HTML code, not only to embed PHP scripts into HTML
File, we can even embed HTML tags in PHP scripts. Here are a few ways you can do it.
You can choose one of the most suitable and stick to this method!
Detach from HTML
Here are the methods you can use:
<% ...%>
As with Perl and C, separate the statements in PHP with ";". Flags that are separated from HTML also represent the end of the statement.
Comments
PHP supports c,c and UNIX-style annotation methods:
/* C,c style multi-line Comment */
C-style single-line comment
# UNIX Style single line comment
How to handle a simple PHP error:
1, you have to put the php.ini in the Display_errors = on to display the wrong location
2. Be accustomed to using echo or print printing
3, learn to use annotations to screen symbols to debug
..........
/*............ */
#..............
4, to understand the error message (English is not familiar with the Arabic numerals always know it)
http://www.bkjia.com/PHPjc/321060.html www.bkjia.com true http://www.bkjia.com/PHPjc/321060.html techarticle PHP Overview: PHP is hypertext preprocessor (hyper-text preprocessor) abbreviation, is a server-side, cross-platform, HTML embedded scripting language, its unique syntax mixed with C language, J ...