小编kin*_*tiv的帖子

需要帮助将我的PHP应用程序转换为Coldfusion.谁能帮助

这是当前的PHP,不知道如何开始转换为Coldfusion.我需要在我的coldfusion服务器上发布这个.

<?php
/**
 * Saves POST input as an XML file and returns a JSON response
 */

$xmlString;

if (isset($_POST['xmlString'])){
$filename  = $_POST['xmlFilename'];
$xmlString = stripslashes($_POST['xmlString']);

$newFile = "_data/".$filename.".edit.xml";

//write new data to the file, along with the old data 
$handle = fopen("../".$newFile, "w"); 
if (fwrite($handle, $xmlString) === false) { 
    echo "{error:\"Couldn't write to file.\"}";  
} 
else {
    //echo "{filename:\"".$newFile."\"}";
    echo "success:::$newFile:::$xmlString";
}
    fclose($handle);    
}
?>
`
Run Code Online (Sandbox Code Playgroud)

php coldfusion

2
推荐指数
1
解决办法
401
查看次数

标签 统计

coldfusion ×1

php ×1