我收到了这个错误
Parse error: Syntax error, unexpected T_STRING in
/ho…/ssd/recording-goodbye.PHP on line 1
我发现这一行导致了这个问题:
<?xml version="1.0" encoding="UTF-8"?>
我认为这是因为在此服务器上启用了短标签,它是一个共享主机帐户,我无法访问PHP.ini文件.有没有办法我可以设置标题或逃避这一行?
<?PHP echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
<Response>
<Say>Thanks for your recording. Here is what I heard</Say>
<Play><?PHP echo $_REQUEST['RecordingUrl']; ?></Play>
<Say>Goodbye</Say>
</Response>
解决方法:
这解决了它
<?PHP echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>