PHP100 Curriculum Learning Notes 1--php environment collocation and code debugging

Source: Internet
Author: User
Tags html tags php language mysql php code php error

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



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.