如何解决此PHP解析/语法错误? [重复]

问题描述 投票:0回答:1

我正在尝试修复此脚本,但出现错误:

PHP解析错误:语法错误,...中意外的'Content'(T_STRING),]]

error.log表示错误在第266行,即head-meta http-equiv =行:

    // Email content, if the client supports HTML
    $message_html = "
        <html>
            <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
                <title>".$subject."</title>
            </head>
                <body>
                    Text in the email Body... 

任何线索?

[我正在尝试修复此脚本,并得到一个错误:PHP解析错误:语法错误,...中出现意外的'Content'(T_STRING)。 meta http -...

php html email syntax html-email
1个回答
-1
投票

用单撇号替换$ message_html中的引号。:

© www.soinside.com 2019 - 2024. All rights reserved.