本文介绍了如何将这个PHP代码转换为Jquery?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Team,



我有PHP代码,这里我需要在我的应用程序中将此代码转换为jquery。如果知道有人可以分享知识。



$ xmlString;

if(isset($ _ POST ['xmlString']) ){

$ filename = $ _POST ['xmlFilename'];

$ xmlString = stripslashes($ _ POST ['xmlString']);



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



//写新的数据到文件,以及旧数据

$ handle = fopen(" ../& quot;。$ newFile," w");

if( fwrite($ handle,$ xmlString)=== false){

echo" {error:\"无法写入file.\"}" ;;

}

else {

echo" {filename:\""。$ newFile。" \"}" ;;

}

fclose($ handle);

}







问候

Nanda Kishore.CH

解决方案




Hi Team,

i have PHP code, here i need to convert this code to jquery in my application. If there is know anyone could you share the knowledge.

$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."\"}";
}
fclose($handle);
}



Regards
Nanda Kishore.CH

解决方案




这篇关于如何将这个PHP代码转换为Jquery?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-11 20:25