PHP5.2升级PHP5.3的问题
我以前的环境是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配置文件还原到现在的看看