unexpected end of file in HotNewspro\includes\directory.php on line 22
2013-12-08 20:19
567 查看
Parse error: syntax error, unexpected $end in H:\wamp\www\wordpress\wp-content\themes\HotNewspro\cms.php on line 182
解决办法,以常用的本地php测试环境WAMP程序为例,WAMP默认short_open_tag =为Off 状态,作用是不允许使用PHP<? ?>缩写形式,改为On即可。
这也是搭建本地环境测试网站程序必须的设置。
具体设置方法:点击任务栏WAMP图标,Php-php设置-勾选short_open_tag =on
如果你使用的是xampp,可以打开php目录及apache\bin目录的php.ini,查找:short_open_tag =off
修改为:short_open_tag =on
注:需要重启本地环境才能生效
解决办法,以常用的本地php测试环境WAMP程序为例,WAMP默认short_open_tag =为Off 状态,作用是不允许使用PHP<? ?>缩写形式,改为On即可。
这也是搭建本地环境测试网站程序必须的设置。
具体设置方法:点击任务栏WAMP图标,Php-php设置-勾选short_open_tag =on
如果你使用的是xampp,可以打开php目录及apache\bin目录的php.ini,查找:short_open_tag =off
修改为:short_open_tag =on
注:需要重启本地环境才能生效
相关文章推荐
- PHP错误Parse error: syntax error, unexpected end of file in test.php on line 12解决方法
- Parse error: syntax error, unexpected end of file in *.php on line * 解决方法
- &lt;?php}?&gt;格式导致错误 Parse error: syntax error, unexpected end of file in *.php on line 374
- PHP错误Parse error: syntax error, unexpected end of file in test.php on line 12解决方法
- PHP错误Parse error: syntax error, unexpected end of file in test.php on line 12解决方法
- PHP问题Parse error: syntax error, unexpected end of file in
- Laravel No such file or directory in /bootstrap/autoload.php on line 17
- Warning: require(D:\wamp\www\glink-smart\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in D:\wamp\www\glink-smart\bootstrap\autoload.php on line 1
- php出现如下错误: Parse error: syntax error, unexpected end of file in
- Notice: unserialize(): Error at offset 134526789 of 2136547489 bytes in file.php on line 130
- PHP关于syntax error语法错误的问题(Parse error: syntax error, unexpected end of file in xxxxxxxx)
- php-fpm启动报错:libgearman.so.8: No such file or directory in Unknown on line 0
- Parse error: syntax error, unexpected $end in D:\webserver\www\test\test.php on line 27
- failed to open stream: No such file or directory in includes/src/Varien_Autoload.php on l
- : gzip: stdin: unexpected end of file tar: Unexpected EOF in archive tar: Unexpected EOF in archive
- 使用VC6.0编译C++代码的时候报错:fatal error C1071: unexpected end of file found in comment(Mark ZZ)
- Warning: Unexpected character in input: '' (ASCII=21) state=1 in /usr/local/php/bin/php-cgi on line 383
- gzip: stdin: unexpected end of file tar: Unexpected EOF in archive tar: Unexpected EOF in archive ta
- 修改文件.bash_profile后报错 /home/tomcat/.bash_profile: line 18: syntax error: unexpected end of file
- Error on line -1 of document : Premature end of file. Nested exception: Premature end of file.