-2
我嘗試在.txt文件中用php編寫一些數據。所以我在SAPUI5應用程序創建的文件「writeData.php」與此內容:在HANA雲平臺上運行一些帶有SAPUI5的PHP代碼
<?php
$inhalt = "123456789";
$handle = fopen ("testWrite.txt", w);
fwrite ($handle, $inhalt);
fclose ($handle);
?>
然後我嘗試調用這個文件具有以下Ajax請求:
writeStringToWhitelist: function(newContent){
$.ajax({
url: "writeData.php",
type: "GET",
data: newContent,
async: false,
success: function(){
console.log("Success");
}
});
}
我知道有肯定有一些錯誤,但我希望有人能幫助我!
謝謝問候
究竟是什麼問題? – matbtt