When writing the message version < .> not use <php?>, how to solve

Source: Internet
Author: User
When you write the message version Not with ?
Rt

The file containing the database is called first.
Require (' dbconnect.php ');
?>
Take the code from the book.
Why do not add PHP here, plus the page is not displayed, do not add more than the beginning;
echo "

";
echo "

View Message

";
/////////////////////////
////////////////////////
?>

And then it goes wrong when it's displayed.
The display is the same as the following code does not add PHP effect
echo "

";
echo "

View Message

";
?>

Share to:


------Solution--------------------
And Essentially the same.
For the PHP short label form, the default value is not turned on, if you need to use this form to set the Short_open_tag of the php.ini file to ON.
------Solution--------------------
Are you sure Page_count = 1; not $page_count?
Is page not $page?
------Solution--------------------
The short label has been discarded and it is recommended not to use
------Solution--------------------
Estimated to be the older textbook,
This must be a short mark, and now many servers are not open.
And that's how it's written. , it's a sore egg.

Recommended Write specifications, .


------Solution--------------------
Check if the short label in PHP.ini is open ...
  • 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.