This Set-Cookie was blocked because it was not sent over a secure-connection and would have overwritten a cookie with Secure attribute当HTTPS下有了一个Cookie后,再想在同域名的HTTP站点下写入Cookie[...]
网站首页 »
PHP
网站首页 »
PHP
database.php 中params 配置PDO::MYSQL_ATTR_SSL_CA=>'/var/lib/mysql/ca.pem', PDO::MYSQL_ATTR_SSL_CERT=>'/var/lib/mysql/client-cert.pem', PDO::MYSQL_ATTR_SSL_KEY=>'/var/lib[...]
网站首页 »
PHP
多维数组按字段多次排序$arr = array(); for ($i = 1;$i<10;$i++){ $item = array(); $item['name'] = 'name-' . $i; $item['number'] = rand(10,99); $item['sort'] = rand(1,10)[...]
网站首页 »
PHP
JAVA代码public static byte[] encrypt(String content, String password) throws Exception{ KeyGenerator kgen = KeyGenerator.getInstance("AES"); SecureRandom random [...]
网站首页 »
PHP
1、设置相关1.1、仓库使用ssh模式clone到本地1.2、仓库添加部署公钥2、服务器配置2.1、切换到PHP-FPM运行账户,无法切换时修改 /etc/passwd2.2、使用PHP-FPM运行账户生成gitee指定的公钥ssh-keygen -t ed25519 -C "[email protected]" 2.3、将公钥部署[...]