类别: PHP

我在学什么,在这个地球上的步行

针对 PHP 的公积金验证代码

O código abaixo é de uma função em PHP otimizada para ter o menor numero de complexidade ciclomática que consegui baseado na explicação presente no artigo Algoritimo de validação de CPF brasileiro – Cadastro de Pessoa Física. 在第二个数字化测试仪的计算时略有变化. Ao invés de começar pelo…
阅读更多

乌本图上的码头. 服务 nginx 无法生成: ADD 失败: 统计 /var/lib/docker/tmp/docker-builder(;)/startup.sh: 没有这样的文件或目录

有时, 使用拉多克时, this error occurs after trying a container rebuild with no such file or directory message on docker-compose up -d –;build nginx command. 我不清楚什么是实际问题, 但运行命令与sudo, 我们可以成功运行它. Seems that the regular user need access rights…
阅读更多

数据表 + Html 5 出口按钮 + 拉拉维尔-米格 (网络包)

在最后的日子里, I have experienced a problem trying to use Datatables and Bootstrap 4 with support for exporting results to Excel and PDF using Laravel-Mix. 数小时后,尝试将所有脚本协同工作, 我终于赢了. 所以, I decide to write this little how to for those with same…
阅读更多

在 PDO SQL 语句中绑定多个值 (PDOStatement)

如何在将多个值绑定到多列或将单个值写入 SQL 指令时, 如何将几个占位符绑定到 PDO

命名文件使用从列表 0 到 Z

如何创建增量的文件名 0 通过 9, 所以从 A 到 Z.

PHP 比较错误

今天, 我在写一个脚本在 PHP 使用在命令行中,当遇到了意外的行为 (至少对我而言). 该脚本应接收三个参数, 其中最后一个包含一个或多个数字代码列表. Trying to validate this last argument was getting a different result…
阅读更多

转换 xor, 自发性高血压大鼠和 PHP 的 Delphi shl

Estou migrando um software feito em Delphi para PHP e me deparei com um problema em uma maldita bendita função de criptografia. 我遭受到一点并试图重写函数,代码和结果的差异的复杂性. A função faz uso dos operadores XOR e SHR na versão Delphi. O SHR foi relativamente…
阅读更多