PHP5.2升级PHP5.3的问题

WBOY
Release: 2016-06-23 14:06:42
Original
932 people have browsed it

我以前的环境是PHP5.2.8是IIS以ISAPI的方式挂载的,现在我更换成了PHP5.3.14是IIS+FastCGI方式挂载的,结果就悲剧了以前下面这段程序是可以运行的,但是现在就无法运行了
function kc_f_singleupload($id,$path,$filetype=0,$count=1,$width=1000,$height=1000){
global $king;
$s.="";
$s.=kc_icon('a9',$king->lang->get('system/common/singleupload')).$king->lang->get('system/common/singleupload');
$s.="
";
$s.=" 剪裁";
$s.='
<script> <br /> var uploaddialog=$.artdialog({title:false,content:"图片上传中,请稍候...",show:false}); <br /> var uploader = new plupload.Uploader({ <br /> runtimes : "flash", <br /> browse_button : "pickfiles", <br /> container: "pickfiles", <br /> max_file_size : "20mb", <br /> max_file_count: '.$count.', <br /> rename: true, <br /> unique_names: true, <br /> url : "/system/manage.php?action=iframe&CMD=plupload&filetype=0&is=1&&KingCMS_Admin='.$_COOKIE['KingCMS_Admin'].'", <br /> resize : {width : 1920, height : 1080, quality : 90}, <br /> flash_swf_url: "../ui/plupload/plupload.flash.swf", <br /> filters : [{title : "图片文件", extensions : "jpg,gif,png"}], <br /> init: { <br /> FileUploaded: function (up, file, info) { <br /> uploaddialog.hide(); <br /> info.response=eval("(" + info.response + ")"); <br /> $("#'.$id.'").val(info.response.result); <br /> up.stop(); <br /> }, <br /> BeforeUpload:function(){ <br /> uploaddialog.show(); <br /> }, <br /> FilesAdded:function(up, files) { <br /> uploader.start(); <br /> } <br /> } <br /> }); <br /> uploader.init(); <br /> </script>';
return $s;
}

提示$s.="";出错,请各位帮忙看看是怎么回事,谢谢啦……


回复讨论(解决方案)

跟php加载方式有关系吗?  我感觉应该是跟php的配置有关系吧,你吧原来的php配置文件还原到现在的看看

先把你的出错信息贴出来 好吧...

我以前的环境是PHP5.2.8是IIS以ISAPI的方式挂载的,现在我更换成了PHP5.3.14是IIS+FastCGI方式挂载的,结果就悲剧了以前下面这段程序是可以运行的,但是现在就无法运行了
function kc_f_singleupload($id,$path,$filetype=0,$count=1,$width=1000,$height=1000){
gl…… 谢谢二楼的大哥,确实我把PHP5.2的配置文件,覆盖到PHP5.3的文件夹下,结果就好了,不知道哪里配置不一样,5.3的配置文件有70KB,结果5.2的只有40KB,PHP照样能运行

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template