unexpected end of file in HotNewspro\includes\directory.php on line 22
来源:互联网 发布:书店管理系统数据库 编辑:程序博客网 时间:2024/05/24 07:43
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
注:需要重启本地环境才能生效
- unexpected end of file in HotNewspro\includes\directory.php on line 22
- Parse error: syntax error, unexpected end of file in ..\..\functions.php on line 1246
- <?php}?>格式导致错误 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解决方法
- failed to open stream: No such file or directory in includes/src/Varien_Autoload.php on l
- unexpected end of file found in comment
- unexpected end of file found in comment
- Parse error: syntax error, unexpected $end in D:\webserver\www\test\test.php on line 27
- unexpected T_ELSE in if_expression.php on line
- unexpected end of file
- .bashrc: line 123: syntax error: unexpected end of file
- line 132: syntax error: unexpected end of file
- php出现如下错误: Parse error: syntax error, unexpected end of file in
- php 报错 Parse error: syntax error, unexpected end of file in (路径)
- : gzip: stdin: unexpected end of file tar: Unexpected EOF in archive tar: Unexpected EOF in archive
- Parse error: syntax error, unexpected end of file in
- error RC2103 : unexpected end of file in string literal
- 程序中出现unexpected end of file in macro expansion
- prepareStatement与Statement的区别
- POJ1505:Copying Books(区间DP)
- 打印调用堆栈
- IOS中常用手势:手指向右滑动和向左滑动屏幕实现固定操作
- JMS入门(一)从简单示例开始
- unexpected end of file in HotNewspro\includes\directory.php on line 22
- 一次Linux服务器被hack的过程分析
- 分为非
- iOS面试题
- 求二进制数中1的个数
- android-Service和Thread的区别
- UVa 10617 Again Palindromes / 记忆化搜索
- UICollectionView详解
- BAT后台运行的方法