"A daily Blog"--Learning PHP

Source: Internet
Author: User
Tags learn php

Because of the requirements of child Gakkan, and the environment of their own are mostly Linux, so personally feel php+mysql under the Linux experience is quite good .... So I started to learn PHP!

Here is a little bit of experience in learning PHP tags in various ways

echo "This is an XML-style tag";

<script languange= "PHP" >
Echo ' This is the script style tag ';

< This is a short-style mark; >

Echo ' This is an ASP-style tag ';

Note: The last two styles are required to change php.ini to be able to play a role, the method is as follows:

Short tag: you will need to set the _open_tag=on in PHP.ini, default is on, or add the –enable-short-tags option when PHP is compiled. (PHP version 3 can also be activated with the Short_tags () function by using the short tag.) ) 

ASP markup Style: need to open asp_tags = On in the php.ini config file;

Note: You should avoid using short marks when developing programs or libraries that need to be released, or on servers that the user cannot control. Because the target server may not support short tokens. For code porting and distribution, be sure not to use short marks.

It is generally recommended to use the first way ...

Related Article

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.