Ai
6 Star 6 Fork 0

CodeKpy/php助手

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
d.html 844 Bytes
Copy Edit Raw Blame History
Inventocode authored 2022-11-12 21:33 +08:00 . 图标
<html>
<head><link rel="shortcut icon" href="./blockly/ini/site/Loge.svg"type="image/x-icon"></head>
<body>
<a id="a"></a>
<script>
var phptext = `
<?php
$myfile = fopen($_POST['name'], "w") or die("Unable to open file!");
fwrite($myfile,$_POST['text']);
fclose($myfile);
echo $_POST['text'];
?>
`;
function d(text, name, type) {
var a = document.getElementById("a");
var file = new Blob([text], { type: type });
a.href = URL.createObjectURL(file);
a.download = name;
a.dispatchEvent(new MouseEvent('click', { 'bubbles': false, 'cancelable': true }));
}
d(phptext, 'helper.php', 'text/plain');
</script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/codekpy/php-helper.git
git@gitee.com:codekpy/php-helper.git
codekpy
php-helper
php助手
master

Search