Basic knowledge of PHP-four qualifiers

Source: Internet
Author: User
Tags html header learn php php basics

Nothing to do, research and Java, C # completely different fields php,php namely (Foreign name: Php:hypertext Preprocessor, Chinese name: "Hypertext Preprocessor"), for beginners to learn PHP, have to master the deployment of Apache, Apache deployment, later on, of course, PHP, Apache, MySQL now also has a more than one-click Deployment Tools, such as Wamp (Windows, Apache, MySQL, PHP), resources online More, here do not talk about the related resource links sent out, To avoid the suspicion of getting points, let's talk about PHP basics.

  1. Four qualifiers (what is a delimiter?) We can understand it as a starting character, a decomposition character. PHP Why to four kinds of qualifiers, it is not difficult to understand, first of all, PHP is open source language, and his development in the HTML, C #, Java, and then developed. There is no reason to hate, there is no reason to love, although PHP is open source, but also someone to pay attention to, the majority of people concerned, perhaps like us, C #, Java practitioners, for the new development language, the need for a process of acceptance, so the PHP official website There are four kinds of qualifiers, Let's follow along and learn. Say bad, please dare to shoot bricks!
    • Standard wording <?php?>, is also recommended by the official website, the beginning of the <?php end of the symbol ?>, here is better understood, in fact, with the beginning of the HTML symbol similar, here for beginners, Recommended use of Dreamwearm tools, tools in the < Defined as server labeling, server labeling here is better understand, since it is related to the service area, then PHP is certainly able to write dynamic pages, corresponding to the HTML dynamic page and static page definition, I would like to do not introduce too much here, static and dynamic differences, is whether to request services, the following wording:
    •     <? PHP         Echo ' Hoe wo day copse ';     >    <br>    <?  PHP        echo ' bed before the moon light'    ;? >
    • Simple wording <? ?>, this writing needs to configure the PHP configuration file, is not recommended here, the specific configuration is to find the PHP installation directory of the php.ini file; how can I find this file? Here as an experienced developer is hard for me, generally this file is stored in a folder with con suffix, or directly in the root directory of the file, or the most stupid way to search the header folder *.ini, find the INI file open. Here for everyone to expand the knowledge, why the configuration file is the INI end of it? It is not difficult to understand that INI is an abbreviation for the English "initialization" (initialization), the INI file format is an unofficial standard for configuration files on certain platforms or software, consisting of sections and keys (key), commonly used in Microsoft Windows operating systems. The file extension for this configuration file is ini, hence the name. Open with Notepad or install EditPlus, EditPlus has to be one of the programmer's essential software, powerful text editing features. Searching for Short_open_tagin the file, the literal meaning of the word I want to be easy to understand, the first part of the line to remove the number of comments to modify the Short_open_tag=on.

    •     <?        Echo ' Hoe wo day copse ';     >
    • ASP style <%%>, this and ASP Call Background service page of the same way, the person who learned aspx.net should not be unfamiliar with this writing, of course, to this wording, the same need to modify the php.ini configuration file. Search for asp_tagsin this article, release the annotations, and modify the Asp_tags=on. The specific wording is as follows:
    •     <%        echo ' Hoe wo day copse ';     %>
    • JS style <script language= "php" ></script> We can also understand the script, for the understanding of the script, here to tell you a joke, Why some foreigner's work translated into Chinese meaning a bit stiff, of course, this is only my point of view, after all, I am not an English professional. Script, which can be interpreted as inserting text in any place in the text like a foot. Here is a good understanding of why JS in the HTML header can be written, the tail can also, even the middle position. With so much to do, attach the exact wording
    •     <script language= "php" >        echo ' hoe wo ri copse ';     </script>

Basic knowledge of PHP-four qualifiers

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.