xdebug 配置

xdebug 配置php.inixdebug 2.0配置[xdebug]xdebug.remote_enable=Onxdebug.remote_autostart=Offxdebug.remo...

swoole学习demo

clienttcp_client.php<?php// 连接 swoole tcp 服务$client = new swoole_client(SWOOLE_SOCK_TCP);if(!$...

php总结

数组随机取function array_random ($number, $ary) { // @number 需要取多少个元素 // @ary 原数组 $final = [...

PHP对redis操作详解

1.Connection$redis = new Redis();$redis->connect('127.0.0.1',6379,1);//短链接,本地host,端口为6379,超过1秒...

PHP操作MongoDB(增删改查)

MongoDB的PHP驱动提供了一些核心类来操作MongoDB,总的来说MongoDB命令行中有的功能,它都可以实现,而且参数的格式基本相似。PHP7以前的版本和PHP7之后的版本对MongoD...

php设置跨域

nginx配置location / { #以下跨域设置 if ( $request_method = OPTIONS ) { add_header Access-Con...