会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
newmiracle宇宙
提供cocoscreator shader pixijs PHP等各种技术分享
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
15
16
17
18
19
20
21
22
23
···
98
下一页
2021年3月2日
PHP多进程开发1
摘要: PHP多进程开发1 <?php $pid = pcntl_fork(); //父进程和子进程都会执行下面代码 if ($pid == -1) { //错误处理:创建子进程失败时返回-1. die('could not fork'); } else if ($pid) { echo getmypid(
阅读全文
posted @ 2021-03-02 09:46 newmiracle宇宙
阅读(58)
评论(0)
推荐(0)
2021年3月1日
Linux 在文件夹的所有文件中查找某字符
摘要: 在 /home 目录下的所有文件中查找包含 test 字符串的文件。 grep -r -e "test" /home/
阅读全文
posted @ 2021-03-01 09:43 newmiracle宇宙
阅读(441)
评论(0)
推荐(0)
2021年2月27日
webman 关于数据库性能
摘要: webman 关于数据库性能 webman链接数据库用的是单例模式 就是用户链接一次 第二次就不需要链接 多个用户就是多个链接1次 public function __construct($pdo, $database = '', $tablePrefix = '', array $config =
阅读全文
posted @ 2021-02-27 20:19 newmiracle宇宙
阅读(534)
评论(0)
推荐(0)
2021年2月26日
虚拟机centos安装方法
摘要: 虚拟机centos安装方法 http://mirrors.nju.edu.cn/centos/7.9.2009/isos/x86_64/ 要装dvd版本 64bit就行了
阅读全文
posted @ 2021-02-26 12:40 newmiracle宇宙
阅读(62)
评论(0)
推荐(0)
2021年2月24日
php spl_autoload_register
摘要: <?php function test1(){ echo 'test1'; } function test2(){ echo 'test2'; } spl_autoload_register('test1',true,true); spl_autoload_register('test2',true
阅读全文
posted @ 2021-02-24 16:22 newmiracle宇宙
阅读(73)
评论(0)
推荐(0)
2021年2月23日
php 根据ip获取地区的方法
摘要: php 根据ip获取地区的方法 <?php $ip=$_GET['ip']; header("Content-type:text/html;charset=utf-8"); require('phpQuery/phpQuery.php'); $info=file_get_contents("http
阅读全文
posted @ 2021-02-23 21:41 newmiracle宇宙
阅读(737)
评论(0)
推荐(0)
php webman和tp并发能力对比
摘要: 基准测试中 tp 是1200 webman是 1W5 webman在基准测试中优势还是很大的 但是加了数据库操作 就优势不明显了 webman 只有200多了 tp也是200多 相差不多 总结 如果在接口里要高并发 那就不要用数据库操作 全部用缓存 并发能力才能达到几千
阅读全文
posted @ 2021-02-23 09:47 newmiracle宇宙
阅读(2345)
评论(2)
推荐(1)
2021年2月21日
webman快速入门1
摘要: webman快速入门1 1 数据库操作 安装直接看文档 我比较喜欢原生的写法 这里没用连接池 因为他用单利模式 也反复用 性能不比用了连接池差 //返回值:方法总会返回结果的数组数据。数组中的每个结果都是一个 PHP StdClass 对象,这使你能够访问到结果的 $results = DB::se
阅读全文
posted @ 2021-02-21 15:21 newmiracle宇宙
阅读(2745)
评论(0)
推荐(1)
2021年2月20日
PHP实现依赖注入
摘要: PHP实现依赖注入 依赖注入 主要是为了解耦 A类调用B类的方法 如果B类方法改了A类也要改 这样耦合度非常高 维护起来也麻烦 主要是因为还要关注A类的逻辑 依赖注入的出现就是B类方法改了 不用关注A类的实现 去改个配置文件就行 简单的说就是A类调用B类的方法是基于配置文件实现(获取其他方法 也是L
阅读全文
posted @ 2021-02-20 12:32 newmiracle宇宙
阅读(315)
评论(0)
推荐(0)
2021年2月18日
threejs Z轴一镜到底
摘要: <!DOCTYPE html> <html lang="en"> <head> <title></title> <meta charset="utf-8"> <meta name="generator" content="Three.js Editor"> <meta name="viewport"
阅读全文
posted @ 2021-02-18 21:37 newmiracle宇宙
阅读(218)
评论(0)
推荐(0)
上一页
1
···
15
16
17
18
19
20
21
22
23
···
98
下一页
公告