【问题标题】:Enable js response when trying to exexute a php file from cron-job.org尝试从 cron-job.org 执行 php 文件时启用 js 响应
【发布时间】:2022-01-03 12:43:41
【问题描述】:

我在免费服务器 (byethost) 中有一个 php 文件,我想从 cron-job.org 执行该文件,但我收到了一个无脚本 js 响应。如何修复的想法将是值得的。谢谢

回复:

Server: nginx
Date: Wed, 24 Nov 2021 21:09:29 GMT
Content-Type: text/html
Content-Length: 848
Connection: keep-alive
Vary: Accept-Encoding
Expires: Thu, 01 Jan 1970 00:00:01 GMT
Cache-Control: no-cache

<html>

<body>
    <script type="text/javascript" src="/aes.js"></script>
    <script>function toNumbers(d) { var e = []; d.replace(/(..)/g, function (d) { e.push(parseInt(d, 16)) }); return e } function toHex() { for (var d = [], d = 1 == arguments.length && arguments[0].constructor == Array ? arguments[0] : arguments, e = "", f = 0; f < d.length; f++)e += (16 > d[f] ? "0" : "") + d[f].toString(16); return e.toLowerCase() } var a = toNumbers("f655ba9d09a112d4968c63579db590b4"), b = toNumbers("98344c2eee86c3994890592585b49f80"), c = toNumbers("d61ae965428c82887a530079c50d1343"); document.cookie = "__test=" + toHex(slowAES.decrypt(c, 2, a, b)) + "; expires=Thu, 31-Dec-37 23:55:55 GMT; path=/"; location.href = "myUrl";</script>
    <noscript>This site requires Javascript to work, please enable Javascript in your browser or use a browser with
        Javascript support</noscript>
</body>

</html>

【问题讨论】:

  • “无脚本 js 响应”是什么意思,您在哪里收到它?你期待看到什么?

标签: javascript cron


【解决方案1】:

【讨论】:

  • 正如目前所写,您的答案尚不清楚。请edit 添加其他详细信息,以帮助其他人了解这如何解决所提出的问题。你可以找到更多关于如何写好答案的信息in the help center
猜你喜欢
  • 1970-01-01
  • 2018-08-17
  • 2011-09-19
  • 2011-10-06
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-05-21
  • 1970-01-01
相关资源
最近更新 更多