小编ale*_*bal的帖子

phpmyadmin - count():参数必须是实现Countable的数组或对象

我已将备份上传到表格,打开表格我看到了:

Warning in ./libraries/sql.lib.php#601
count(): Parameter must be an array or an object that implements Countable

Backtrace

./libraries/sql.lib.php#2038: PMA_isRememberSortingOrder(array)
./libraries/sql.lib.php#1984: PMA_executeQueryAndGetQueryResponse(
array,
boolean true,
string 'alternativegirls',
string 'tgp_photo',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
string '',
string './themes/pmahomme/img/',
NULL,
NULL,
NULL,
string 'SELECT * FROM `tgp_photo`',
NULL,
NULL,
)
./sql.php#216: PMA_executeQueryAndSendQueryResponse(
array,
boolean true,
string 'alternativegirls',
string 'tgp_photo',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
string '',
string './themes/pmahomme/img/',
NULL,
NULL,
NULL,
string 'SELECT * FROM `tgp_photo`',
NULL,
NULL,
)
./index.php#53: …
Run Code Online (Sandbox Code Playgroud)

phpmyadmin countable

385
推荐指数
25
解决办法
27万
查看次数

robots.txt 中抓取延迟的最大值是多少?

如标题所示,robots.txt 中爬行延迟可以设置的最大值是多少?

我从 bing 获得的点击量很少,但在我的服务器中 bing 消耗的资源比 google 更多。

所以我根本不想阻止 bing(因为它不好),但我需要限制 bing 对我的服务器的访问。

我看到有人使用crawl-delay: 120,但后来我读到也许bing只能理解从10到30的crawl-delay。

我对 robots.txt 做了一些测试,最初似乎有效,但过了一段时间我开始收到来自 bing 的大量请求。我也尝试在bing站长工具上设置扫描频率,但没有太大变化。

我想为 yandex 做同样的事情,我不能每天收到 250000 次点击来换取每月 10 次访问,但我不想完全阻止它。

总而言之,可用于 bing 和 yandex 的最大抓取延迟值是多少?

robots.txt delay bing yandex

5
推荐指数
0
解决办法
513
查看次数

SpeechSynthesisUtterance 脚本,带有播放、暂停、停止按钮以及语言和语音选择

我想使用 SpeechSynthesisUtterance 阅读我的页面文本。

\n\n

我找到了这个脚本:https://www.hongkiat.com/blog/text-to-speech/

\n\n

几乎完美,但暂停按钮似乎没有多大作用,我希望我能够设置语言,也许还可以选择声音。

\n\n

我在这里找到了参考: https: //developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance,但我对 JavaScript 不是很了解。

\n\n

对于语言,据我了解,应该使用html标签中设置的lang参数。

\n\n

对于语音我完全不知道如何在代码中实现它。

\n\n

这很重要,因为我有英语、西班牙语、法语和意大利语的文本,而没有语音和语言设置的结果有时听起来很奇怪。

\n\n

更新

\n\n

这些天我摆弄了一下,我设法(或多或少)组合了两个不同的脚本/示例。

\n\n

这个:https: //www.hongkiat.com/blog/text-to-speech/

\n\n

这是: https: //developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis#Examples

\n\n

出来的代码是这样的:

\n\n

超文本标记语言

\n\n
<html>\n<head>\n<link rel="stylesheet" href="style.css">\n<script src="text-to-speech.js"></script>\n</head>\n<body>\n<div class=buttons>\n    <button id=play></button> &nbsp;\n    <button id=pause></button> &nbsp;\n    <button id=stop></button>\n</div>\n    <select id="voices">\n\n    </select>\n<div id="description">\nThe SpeechSynthesis interface of the Web Speech API is the controller interface for the speech service; this can be used to retrieve information about the synthesis voices …
Run Code Online (Sandbox Code Playgroud)

javascript text-to-speech

5
推荐指数
1
解决办法
8967
查看次数

php7.4、php7.4-fpm、http2、Apache、nginx,我很困惑

  • 我可以将 php7.4-fpm 与 A​​pache 一起使用吗?或者 php-fpm 真的只能与 nginx 一起使用吗?为什么?
  • php7.4支持http2吗?或者你还需要 php-fpm 吗?http2 官方网站 (http2.pro) 已经有几年没有更新了。
  • 还值得激活 HTTP2 吗?(最新的更新可以追溯到几年前。)
  • 要激活http2,我遵循了此处描述的所有过程: https: //http2.pro/doc/Apache,现在如果我必须重新激活php(正常)我该如何返回?

(这个问题最初更具解释性,但管理员不喜欢它......他们要求它更加集中,所以让我们尝试只回答问题。)

php apache nginx http2 php-7.4

-2
推荐指数
1
解决办法
1485
查看次数