Notepad++Good Luck To You!

WSL-Ubuntu18.04 LTS 更换apt源为阿里源

$ sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak$ sudo sed -i 's/security.ubuntu/mirrors.aliyun/g' /etc/apt/sources.list$ sudo sed -i 's/archive.ubuntu/mirrors.aliyun/g' /etc/apt/sources.list$ sudo apt update$ sudo apt-get up

PHP 中的多进程使用,进程通信、进程信号等详解

多进程环境要求Linux 系统php-cli 模式pcntl 扩展 或 swoole 扩展pcntl 扩展<?php$str = "hello world!" . PHP_EOL;// 派生一个子进程,子进程会复制主进程中的上下文// pcntl_fork 函数在主进程中返回子进程的进程ID,在子进程返回0,失败在主进程返回-1$pid = pcntl_fork();// 这里开始的代码,会被主进程、子进程共同执行echo $str;if($pid > 0) {&

swoole使用

服务器及客户端4种服务器【tcp/udp/web/websocket】TCP服务器//创建Server对象,监听 127.0.0.1:9501端口$serv = new swoole_server("127.0.0.1", 9501);//监听连接进入事件$serv->on('connect', function ($serv, $fd) {    echo "Client: Connect.\n";});//监听

php删除html标签和标签内的内容的方法

1:删除全部或者保留指定html标签php自带的函数strip_tags即可满足要求,使用方法:strip_tags(string,allow);#string:需要处理的字符串;allow:需要保留的指定标签,可以写多个;echo strip_tags($str,'<p><a>');2:删除指定的html标签使用方法:strip_html_tags($tags,$str);$tags:需要删除的标签(数组格式)$str:需要处理的字符串;fun

Laravel自定义handdler将日志写到远程APi接口上。

首先在config/logging中配置日志的channel和驱动和handler.'YS_YJCX' => [    'driver' => 'monolog',    'level' => 'debug',    'handler' => \App\Log\YsLogHandler::class,   &

«    2023年7月    »
12
3456789
10111213141516
17181920212223
24252627282930
31
TOP 搜索
TOP 控制面板
您好,欢迎到访网站!
  查看权限
TOP 最新留言
    TOP 作者列表
    TOP 站点信息
    • 文章总数:163
    • 页面总数:0
    • 分类总数:6
    • 标签总数:20
    • 评论总数:0
    • 浏览总数:312004
    召唤伊斯特瓦尔