PHP5.2升级PHP5.3的有关问题
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配置文件还原到现在的看看

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

Working with database in CakePHP is very easy. We will understand the CRUD (Create, Read, Update, Delete) operations in this chapter.

To work with date and time in cakephp4, we are going to make use of the available FrozenTime class.

To work on file upload we are going to use the form helper. Here, is an example for file upload.

CakePHP is an open-source framework for PHP. It is intended to make developing, deploying and maintaining applications much easier. CakePHP is based on a MVC-like architecture that is both powerful and easy to grasp. Models, Views, and Controllers gu

Validator can be created by adding the following two lines in the controller.

Logging in CakePHP is a very easy task. You just have to use one function. You can log errors, exceptions, user activities, action taken by users, for any background process like cronjob. Logging data in CakePHP is easy. The log() function is provide

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c
