A problem ignored before php

Source: Internet
Author: User
{Code...} loads a test. php file. This file is empty and only & amp; lt ;? Php? & Amp; gt ;. No error is reported. But if you write {code...} in this way, an error will be reported. Does include create a new php runtime environment? Or why?

  

Load a test. php file. the file is empty and only . No error is reported. However


  ?>

In this way, an error is reported. Does include create a new php runtime environment? Or why?

Reply content:

  

Load a test. php file. the file is empty and only . No error is reported. However


  ?>

In this way, an error is reported. Does include create a new php runtime environment? Or why?

Include is The middle part, without the php start Terminator

Php files should not be closed unless HTML content is included in them.


  

Your error message is not posted. it seems that this problem may be caused by other invalid characters following the Terminator.

Your code area is not well placed. What is your code?

 ?>

This is definitely wrong, and the syntax is incorrect. if not, it is recommended that you edit the problem again. include is equivalent to copying the include file. if you include invalid characters here, the problem may occur, you can also run test. php tests.

Supplement: As mentioned above, although include is a copy file, it should also pay attention to the scope. for details, see include and require in PHP.

After reading your updates, your syntax itself is wrong and will inevitably be wrong.

For more information about the end tag, see official instructions on PHP tag.

Include is not simply to plug the code into the file.

Php is an explanatory language. when reading include and other commands, it will load the opcodes of another file for execution. I think so.

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.