Parse error: syntax error, unexpected end of file in ..\..\functions.php on line 1246
来源:互联网 发布:淘宝双十一的营销策略 编辑:程序博客网 时间:2024/05/23 02:27
今天为了给服务器上的mysql数据库弄一个自动备份,想起了以前用过的帝国备份,在本机win7安装了一下处领先了以上错误。(..\..\代替路径)。
去帝国备份的论坛,发现有一个网友遇到了和我一样的问题。
原帖:http://bbs.phome.net/showthread-27-318538-0.html
根据热心网友提示,”php没配置好,php.ini要把short_open_tag 设置为 On”,解决问题。
自己百度了一下,
short_open_tag 是什么呢?
决定是否允许使用代码开始标志的缩写形式(<? ?>
)。如果要和 XML 结合使用 PHP,可以禁用此选项以便于嵌入使用<?xml ?>
。否则还可以通过php来输出,例如:<?php echo '<?xml version="1.0"'; ?>
。如果禁用了,必须使用 PHP 代码开始标志的完整形式(<?php ?>
)。
注意:本指令也会影响到缩写形式 <?=
,它和 <? echo
等价。使用此缩写需要short_open_tag
的值为 On。
short_open_tag的开启,还有一定的防木马功能,原帖:http://www.91ri.org/2758.html
个人理解 short_open_tag的作用就是支持短标记,也就是支持<??>,最原始,最正规的写法就是<?php ?>。开启short_open_tag之后,可以用<?在里面写代码?>,如果是off,那只能用<?php 用这种写代码?>
0 0
- 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解决方法
- Parse error: syntax error, unexpected end of file in
- Parse error: syntax error, unexpected $end in D:\webserver\www\test\test.php on line 27
- php出现如下错误: Parse error: syntax error, unexpected end of file in
- php 报错 Parse error: syntax error, unexpected end of file in (路径)
- PHP关于syntax error语法错误的问题(Parse error: syntax error, unexpected end of file in xxxxxxxx)
- Parse error: syntax error, unexpected end of file
- Parse error: syntax error, unexpected $end in ...php
- Parse error: syntax error, unexpected '$a' (T_VARIABLE) in D:\xampp\htdocs\curl1.php on line 5
- Parse error: syntax error, unexpected T_STRING in \\e\\data\\tmp\\templist2.php on line 159
- Parse error: syntax error, unexpected T_STRING in /home/wwwroot/request_handler.php on line 60
- .bashrc: line 123: syntax error: unexpected end of file
- line 132: syntax error: unexpected end of file
- php报错 syntax error: unexpected end of file
- syntax error: unexpected end of file
- syntax error: unexpected end of file
- pdf转换器哪个简单好用
- 云计算技术背后的天才程序员:Open VSwitch鼻祖Martin Casado
- poj2528-Mayor's posters
- 简单制作Makefile 文件
- A009: 使用__future__
- Parse error: syntax error, unexpected end of file in ..\..\functions.php on line 1246
- 剧情式拍摄,专属于你们的婚纱照
- 学习笔记(一)
- 【DataStructure】The description and usage of Stack
- HTML,JavaScript简介(章节摘要)
- 扩展欧几里得
- 饭卡 杭电oj
- 史上最经典的Linux内核学习方法论
- 文件编程