gpt4 book ai didi

android - 阿克拉后脚本

转载 作者:行者123 更新时间:2023-11-29 18:03:22 25 4
gpt4 key购买 nike

尝试在我的应用程序中使用 ACRA,但我无法使用谷歌驱动器或电子邮件(在谷歌驱动器中我不知道如何从模板创建表单,电子邮件告诉我没有这样的电子邮件地址,即使我从同一个电子邮件地址发送)。我宁愿让 google drive 电子表格的东西工作或更好 - 如果有一个可供我用来获取报告的免费网络主机的现成脚本。有人知道这样的脚本吗?

编辑:我需要一个 php ...

最佳答案

看起来 ACRA 使用了一个简单的帖子。你需要什么语言的?对于 asp.net:

    protected void Page_Load(object sender, EventArgs e)
{
StringBuilder err = new StringBuilder();
foreach (string name in Request.Form)
{
err.AppendLine(name + ": " + Request.Form[name]);
}

TextWriter tw = null;
try
{
tw = new StreamWriter("f:\\errorLogs\\error_" + DateTime.Now.Ticks + ".txt");
tw.WriteLine(err.ToString());
}
catch (Exception) { }
finally
{
if(tw != null)
tw.Close();
}
}

由于您使用的是“免费网络主机”,该位置可能对您无效,但这至少应该让您指向正确的方向。有 another post这与你的相似。大多数免费网络主机使用 php。

编辑:

这是一个基本的 PHP script (未经测试,但对我来说似乎没问题。我的 PHP 有点生疏):

<?php
$file = 'postData.txt';
$arr= $_POST;
$fp = fopen($file, 'w') or die('Could not open file!');
foreach ($arr as $key => $value) {
$toFile = "Key: $key; Value: $value \n";
// write to file
fwrite($fp, "$toFile") or die('Could not write to file');
}
// close file
fclose($fp);
?>

关于android - 阿克拉后脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14634837/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com