1, PHP's advantages and background
PHP is one of the tools that will allow you to generate dynamic Web pages. PHP representative: Hypertext Preprocessor (Php:hypertext preprocessor).
PHP syntax is similar to c,perl,asp or JSP.
2, the PHP environment collocation
Required Tools: Wampserver 5 Integrated Environment WAMP5 is a APACHE+PHP+MYSQL integration environment 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 full of the needs of most phper ...
3, PHP commonly used tools and database Tools
PHP Development tools: Zend Stodio, Phpedit, EditPlus 2, Easyeclipse, DW, etc.
MySQL tools: MySQL Administrator
4, writing and debugging simple PHP code
Syntactically, the PHP language is similar to the C language. It can be said that PHP is to learn from the grammatical features of C language, from the C language to improve. We can mix PHP code and HTML code, not only embed PHP scripts into HTML files, we can even embed HTML tags in PHP scripts. Here are a few ways you can use it. You can choose one of the most suitable for you and stick to this method!
Detach from HTML
The following are the methods you can use:
? . . . ? >
<?php ...? >
<script language= "php" > ... </script>
<% ...%>
Like Perl and C, ";" is used in PHP to separate statements. The flags that are separated from the HTML also represent the end of the statement.
Comments
PHP supports c,c and UNIX-style annotation methods:
/* C,c Style Multiline comment//C style single-line Comment # Unix style single-line note
5, how to deal with simple PHP error 1 you have to php.ini display_errors = on before you can display the wrong location
2 accustomed to using echo or print printing
3 Learn to use annotations to screen symbols to debug
4 to understand the error message
Http://bbs.php100.com/read-htm-tid-480551.html