readfile(): Unable to find the wrapper ".http" - did you forget to enable it when you configured PHP? readfile(): Unable to find the wrapper ".http" - did you forget to enable it when you configured PHP? PHP教程 2020年05月30日 0 点赞 3 评论 7485 浏览
PHP使用strtotime("-1 month", time())得到上个月是错的 今天是3月30号,使用strtotime得到的不是2月份,而是3月份。解决方法是可以把时间戳先转换成年月,$t = date(Y-m);然后再使用strtoti PHP教程 2020年03月30日 1 点赞 1 评论 9856 浏览
Thinkphp mysql 数据库断线重连 MySQL server has gone away thinkphp,tp5断线重连,cli模式下使用 PHP教程 2020年03月24日 0 点赞 0 评论 11399 浏览
PHPExcel使用方法 直接上代码if(move_uploaded_file($_FILES[\"file\"][\"tmp_name\"], $path.$newname)){ PHP教程 2020年03月13日 1 点赞 2 评论 10489 浏览
PHP向返回的闭包函数实例中,传递外部变量参数 直接上代码吧:# 向返回的闭包函数实例中,传递外部变量参数# 直接调用将不会输出$txt的内容 function demo(){ $txt PHP教程 2020年01月06日 0 点赞 0 评论 12379 浏览
thinkphp5.0 安装think-queue composer 报错 版本不符 因为 think-queue 最新版本支持的tp版本是6所以5.0无法安装;解决方法如下:在composer.json的require节点内添加\"topthi PHP教程 2019年12月31日 1 点赞 0 评论 7638 浏览
thinkphp 5 Guzzle Http 使用 返回 非 200 状态 抛出异常,捕获异常。抑制报错 程序会抛出错误。会导致后续代码无法运行 所以 需要捕捉错误并且反馈出来! PHP教程 2019年12月30日 0 点赞 1 评论 7877 浏览
PHP Unicode编码与解码_Unicode转中文_中文转Unicode字符 今天使PHP开发用到了Unicode的编码与解码,将unicode转为中文,再将中文转Unicode这样的操作是非常常见的,所以小编将这两个unicode中文互 PHP教程 2019年12月26日 0 点赞 0 评论 20504 浏览
PHP返回32位与16位的md5加密值 至于16位的md5加密,可用如下代码实现:/** * 返回16位md5值 * * @param string $str 字符串 * @return string PHP教程 2019年12月26日 0 点赞 0 评论 11183 浏览
php获取本年、本月范围、本周范围时间戳和日期格式的例子 直接上代码:时间戳格式//获取今日开始时间戳和结束时间戳 $beginToday=mktime(0,0,0,date(m),date(d),date(Y)); PHP教程 2019年12月18日 2 点赞 0 评论 10714 浏览
PHP CURL 自定义或者伪造IP和来路 直接上代码://随机IPfunction Rand_IP(){ $ip2id= round(rand(600000, 2550000) / 10000); PHP教程 2019年12月18日 0 点赞 3 评论 13350 浏览
利用workerman的GatewayWorker创建wss-webscoket-ssl服务 nginx代理服务器转发 利用nginx/apache代理wss除了用Workerman自身的SSL,也可以利用nginx/apache作为wss代理转发给workerman。EXPOR PHP教程 2019年12月03日 0 点赞 0 评论 12028 浏览
GatewayWorker 部署之后启动成功 提示events:onMessage is not callable 问题:在php-cli模式下运行 php server.php start抛出提示:events:onMessage is not callable解决方法:E PHP教程 2019年12月02日 2 点赞 0 评论 11423 浏览