首页 \ 问答 \ PHP的数字验证码(Numeric Captcha for PHP)

PHP的数字验证码(Numeric Captcha for PHP)

是否有可用于PHP数字验证码?

不依赖于JavaScript的开启


编辑:

  • 我知道那里有JS独立验证码。
  • 我知道那里有PHP验证码。
  • 我知道那里有数字验证码。

但我正在寻找一个PHP数字与Javascript无关的验证码。
我发现的唯一数字验证码是用于ASP.NET或基于jQuery / JS的。
我不希望这些问题中的任何一个作为答案。

而我在这里并没有考虑一个小型网站。 在答案中,我想知道你的建议是否会给服务器带来很大的压力。


Is there a numeric captcha available for PHP?

(which doesn't rely on JavaScript being turned on)


EDIT:

  • I know there are JS-independent captchas out there.
  • I know there are PHP captchas out there.
  • I know there are numeric captchas out there.

But I'm looking for a PHP numeric Javascript-independent captcha.
The only numeric captcha's I've found are either for ASP.NET or jQuery/JS based ones.
I don't want any of those as an answer to the question.

And I'm not taking about a small website here. In the answer I'd like to know whether your suggestion puts a lot of strain on the server or not.


原文:https://stackoverflow.com/questions/6041555
更新时间:2021-08-01 07:08

最满意答案

将连接字符串放在某种配置文件(xml或ini或其他)中是有用的,以防您将数据库移动到另一台服务器或更改登录凭据等等...

如果你认为你永远不需要这个并且喜欢重建和重新部署你的应用程序,那么不,你不需要任何带有连接字符串的xml配置文件。

如果您担心安全性,可以将其保存在加密的xml文件中,然后解密它。

连接字符串和配置文件

加密app.config中的连接字符串


It's useful to put your connection string in some kind of config file (xml or ini or whatever) in case you move your database to another server or you change your login credentials and so on...

if you think you'll never need this and prefer to rebuild and redeploy your application, then no, you don't need any xml configuration file with the connection string in it.

If you're worried about security you could keep it in the xml file encrypted and then decrypt it runtime.

Connection Strings and Configuration Files

Encrypt connection string in app.config

相关问答

更多
  • 你可以使用Spring-EL和factory-method :
  • 这个代码示例来自于cslarp-examples.net ,由Jan Slama编写: 要查找XML文件中的节点,可以使用XPath表达式。 方法XmlNode.SelectNodes返回由XPath字符串选择的节点列表。 方法XmlNode.SelectSingleNode找到与XPath字符串匹配的第一个节点。 XML: John Smith ...
  • 说theString拥有XML, DocumentBuilderFactory dbfac = DocumentBuilderFactory.newInstance(); DocumentBuilder docBuilder = dbfac.newDocumentBuilder(); Document doc = docBuilder.parse(new InputSource(new StringReader(theString))); 更多信息在这里 s ...
  • 错误 Unable to complete network request to host "Port=3050" cstr的细分 "DataSource=" + globals.serv + "Port=3050;" + 这意味着globals.serv只是一个空字符串。 根本原因是serv_check()在cstr initialize和cstr未更新之后运行。 如果你需要更改globals.serv,你还需要更新cstr或者只需要创建一个新的readonly属性(注意添加DataSource后的“ ...
  • 尝试这个 NHibernate.Cfg.Configuration cfg = new NHibernate.Cfg.Configuration().Configure(); string conString = cfg.Configuration.GetProperty(NHibernate.Cfg.Environment.ConnectionString); try this NHibernate.Cfg.Configuration cfg = new NHibernate.Cfg.Configura ...
  • 将连接字符串放在某种配置文件(xml或ini或其他)中是有用的,以防您将数据库移动到另一台服务器或更改登录凭据等等... 如果你认为你永远不需要这个并且喜欢重建和重新部署你的应用程序,那么不,你不需要任何带有连接字符串的xml配置文件。 如果您担心安全性,可以将其保存在加密的xml文件中,然后解密它。 连接字符串和配置文件 加密app.config中的连接字符串 It's useful to put your connection string in some kind of config file (xm ...
  • 我错过了什么? 是。 .NET有一个内置的机制来存储你的连接字符串,在一个App.config文件中,没有理由手动存储它并自己解析它。 右键点击你的项目,进入添加 - >新建项目 然后,添加一个“应用程序配置文件”: 一旦打开,向它添加一个connectionStrings节点,如下所示: // This is an example of a connectionString node. You may add child // values to it as follows
  • 我在Powershell中看到了两种用于加密的方法 使用* SecureString cmdlet 。 应该注意,只有加密了原始字符串的Windows ID才能解密它(因为它使用Windows登录名作为密钥) 使用密码短语和Library-StringCrypto函数 由于第一种方法的局限性,我使用第二种方法。 然后,我会将加密的连接字符串存储在SQL表中并锁定权限。 为了建立连接,我将从SQL表中检索连接字符串,并使用密码短语进行解密。 There are two methods I've seen fo ...
  • 我担心你要做的事情不起作用。 当布局膨胀时,字符串的使用方式与资源文件中的定义完全相同。 为此,您必须明确设置文本,即 setContentView(R.layout.activity_home); TextView tv = (TextView)findViewById(R.id.theId); tv.setText(text); 其中“theId”是您必须在xml文件中为TextView设置的ID,例如:
  • 使用以下xpath表达式: /bookstore/book[@category="CHILDREN" and year>2003]/*[name()="author" or name()="title"] 在这里,我们选择每个category属性等于CHILDREN且year节点值超过2003书籍。 *[name()="author" or name()="title"]有助于仅选择特定的子项: author和title 。 使用xmllint工具进行演示: $ xmllint input.xml --x ...

相关文章

更多

最新问答

更多
  • 如何在Laravel 5.2中使用paginate与关系?(How to use paginate with relationships in Laravel 5.2?)
  • linux的常用命令干什么用的
  • 由于有四个新控制器,Auth刀片是否有任何变化?(Are there any changes in Auth blades due to four new controllers?)
  • 如何交换返回集中的行?(How to swap rows in a return set?)
  • 在ios 7中的UITableView部分周围绘制边界线(draw borderline around UITableView section in ios 7)
  • 使用Boost.Spirit Qi和Lex时的空白队长(Whitespace skipper when using Boost.Spirit Qi and Lex)
  • Java中的不可变类(Immutable class in Java)
  • WordPress发布查询(WordPress post query)
  • 如何在关系数据库中存储与IPv6兼容的地址(How to store IPv6-compatible address in a relational database)
  • 是否可以检查对象值的条件并返回密钥?(Is it possible to check the condition of a value of an object and JUST return the key?)
  • GEP分段错误LLVM C ++ API(GEP segmentation fault LLVM C++ API)
  • 绑定属性设置器未被调用(Bound Property Setter not getting Called)
  • linux ubuntu14.04版没有那个文件或目录
  • 如何使用JSF EL表达式在param中迭代变量(How to iterate over variable in param using JSF EL expression)
  • 是否有可能在WPF中的一个单独的进程中隔离一些控件?(Is it possible to isolate some controls in a separate process in WPF?)
  • 使用Python 2.7的MSI安装的默认安装目录是什么?(What is the default installation directory with an MSI install of Python 2.7?)
  • 寻求多次出现的表达式(Seeking for more than one occurrence of an expression)
  • ckeditor config.protectedSource不适用于editor.insertHtml上的html元素属性(ckeditor config.protectedSource dont work for html element attributes on editor.insertHtml)
  • linux只知道文件名,不知道在哪个目录,怎么找到文件所在目录
  • Actionscript:检查字符串是否包含域或子域(Actionscript: check if string contains domain or subdomain)
  • 将CouchDB与AJAX一起使用是否安全?(Is it safe to use CouchDB with AJAX?)
  • 懒惰地初始化AutoMapper(Lazily initializing AutoMapper)
  • 使用hasclass为多个div与一个按钮问题(using hasclass for multiple divs with one button Problems)
  • Windows Phone 7:检查资源是否存在(Windows Phone 7: Check If Resource Exists)
  • 无法在新线程中从FREContext调用getActivity()?(Can't call getActivity() from FREContext in a new thread?)
  • 在Alpine上升级到postgres96(/ usr / bin / pg_dump:没有这样的文件或目录)(Upgrade to postgres96 on Alpine (/usr/bin/pg_dump: No such file or directory))
  • 如何按部门显示报告(How to display a report by Department wise)
  • Facebook墙贴在需要访问令牌密钥后无法正常工作(Facebook wall post not working after access token key required)
  • Javascript - 如何在不擦除输入的情况下更改标签的innerText(Javascript - how to change innerText of label while not wiping out the input)
  • WooCommerce / WordPress - 不显示具有特定标题的产品(WooCommerce/WordPress - Products with specific titles are not displayed)