【发布时间】:2013-09-22 20:34:11
【问题描述】:
今天尝试 sublime3(未注册的演示)并且真的比 Dreamweaver 更喜欢工作流程,但在我的生产 LAMP 服务器上不断收到 T_CONSTANT_ENCAPSED_STRING 错误,但不是我的本地 MAMP 测试服务器(使用 Filezilla 进行 SFTP 到 Lamp 服务器)
我删除了这两个测试文件中的所有内容,仅在每个文件中重新键入(而不是复制和粘贴)...(使用 sublime)
UnitTest.php
<?php
require_once ('dbentity.class.php');
?>
dbentity.class.php
<?php
echo "hello";
?>
或 我收到 T_CONSTANT_ENCAPSED_STRING 错误
但如果 dbentity.class.php 是
hello
(没有php标签)我确实得到了“hello”被打印到浏览器的结果。
这完全难倒我 我检查了字符编码(UTF-8)和 chmod(644),所以这似乎不是问题。我已经在dreamweaver 中开发了大约2 年,还没有遇到过这个问题,我最好的猜测是sublime 正在创建gremlins,但我知道很多PHP 开发人员使用sublime...
【问题讨论】:
标签: php mamp lamp sublimetext3