Exception online solution for PHP smarty templates

Source: Internet
Author: User
Tags smarty template
PHP smarty Template Error on-line solution!
PHP smarty Template error, is not smarty template things are to be installed first, I directly to the source code to configure the environment of the machine on the above problem, in the original machine above there is no problem, do not know what the situation, ask the great God advice! Online and other results PHP Smarty Source Code

Share to:


------Solution--------------------
At the beginning of the publicpage.php, add
Error_reporting (e_all ^ e_notice);

Avoid the contradiction first, and then again

------Solution--------------------
The reason why Chinese becomes a question mark is that the content stored in the table cannot be converted to the character set you need
------Solution--------------------
Reference:
Quote: Reference:

The reason why Chinese becomes a question mark is that the content stored in the table cannot be converted into the character set you need
. What's the solution? See in the database is normal, read to the page is garbled, encoding the machine is not a problem, the configuration to others will not be


This kind of problem can first try to collect the information to try to solve

1. What is the encoding of the field in the table?
2. What is the code of the program file

Figure out the two basic questions to solve.
  • 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.