
php
初见阿
苟日新,日日新
展开
-
GmSSL 国密MS2/SM3/SM4/SM9/ZUC/SSL密码工具箱
GmSSL 国密MS2/SM3/SM4/SM9/ZUC/SSL密码工具箱原创 2022-05-17 15:19:44 · 3527 阅读 · 0 评论 -
php 实现 java中的hashCode
php 实现 java中的hashCode原创 2022-05-17 15:18:24 · 465 阅读 · 0 评论 -
PHP生成的请求随机 uuid
PHP生成的请求随机 uuid原创 2022-05-17 15:17:46 · 422 阅读 · 0 评论 -
各类算法合集
用 PHP 的方式实现的各类算法合集原创 2022-05-17 15:15:07 · 172 阅读 · 0 评论 -
堆排序、大根堆
堆排序、大根堆 | PHP原创 2022-05-17 15:14:00 · 232 阅读 · 0 评论 -
Zephir-开发PHP扩展C
Zephir - 是一种高级编程语言,可简化 PHP 扩展的创建和可维护性。Zephir 扩展导出为 C 代码,可以通过 gcc/clang/vc++ 等主要 C 编译器进行编译和优化。功能暴露给 PHP 语言。GitHubhttps://github.com/zephir-lang/zephirZephir Parserhttps://github.com/zephir-lang/php-zephir-parserZephirZephir DocumentationZephir-Docs...原创 2021-12-31 18:00:04 · 445 阅读 · 0 评论 -
PHP8.1.1 编译错误问题汇总
configure: error: Package requirements (libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0) were not met:configure: error: iconv does not support errnocollect2: error: ld returned 1 exit statusmake: *** [sapi/cli/php] 错误 1原创 2021-12-31 17:54:24 · 2314 阅读 · 0 评论 -
php8.1.1编译安装
安装wget https://www.php.net/distributions/php-8.1.1.tar.gztar -zxvf ./php-8.1.1.tar.gzcd php-8.1.1# 编译./configure --prefix=/usr/local/php81 --with-config-file-path=/usr/local/php81/etc --with-config-file-scan-dir=/usr/local/php81/conf.d --with-mysqli原创 2021-12-31 17:51:27 · 1769 阅读 · 0 评论 -
pd-用PHP编写一个密码随机生成脚本命令
编写脚本sudo vim /sbin/pd## pd内容如下#!/usr/bin/env php<?php$length = array_pop($_SERVER['argv']);$length = is_numeric($length) ? $length : 16;$length = $length < 8 ? 8 : $length;$alpha = str_split(str_shuffle('abcdefghijklmnopqrstuvwxyzABCDEFGH原创 2021-12-31 17:40:54 · 231 阅读 · 0 评论 -
PHP进程实现&管理
运行环境为Linux,模式为CLIDEMO/*要创建的子进程*/$manager = [ 'work1', 'work2', 'work3',];/*当前进程名称*/$status = file_exists('/proc/' . getmypid() . '/status');$bash = '-';if ($status) { $bash = file('/proc/' . getmypid() . '/status', FILE_IGNORE.原创 2021-12-31 17:35:29 · 382 阅读 · 0 评论