Skip to content
  • About Me

charlie笔记

A programmer’s note boke for work and life

分类:PHP

php资料,php技术笔记,php更新项目

php遍历读取中文目录里文件

08 4月30 8月 by helenadmin

//要读取的目录 $folder=”D:/www”; //打开目录 $fp=opend […]

Continue reading
Posted in PHP · Leave a comment

php获取汉字拼音

03 3月30 8月 by helenadmin

  <?php class PinYin { public $pinyin = array() […]

Continue reading
Posted in PHP · Leave a comment

YII2 where查询条件整理

23 7月 by helenadmin

文章涉及where、 addParams 、filterWhere 、andWhere、orWhere、 an […]

Continue reading
Posted in PHP · Tagged YII2 where查询条件 · Leave a comment

PHP高并发和大流量解决方案

08 6月08 7月 by helenadmin

一、高并发的概念 在互联网时代,并发,高并发通常是指并发访问。也就是在某个时间点,有多少个访问同时到来。 二、 […]

Continue reading
Posted in PHP · Tagged PHP高并发 · Leave a comment

PHP四大主流框架的优缺点总结

08 5月08 7月 by helenadmin

ThinkPHP ThinkPHP(FCS)是一个轻量级的中型框架,是从Java的Struts结构移植过来的中 […]

Continue reading
Posted in PHP · Tagged PHP四大主流框架 · Leave a comment

PHP YII2 yii\base Model::loadMultiple示例

21 4月 by helenadmin

示例#1 2    显示文件 文件: UsersController.php 项目: KasselR/yii2 […]

Continue reading
Posted in PHP · Tagged Model::loadMultiple, PHP YII2, yii\base Model::loadMultiple示例 · Leave a comment

yii2.0框架中使用elasticsearch

11 8月 by helenadmin

common/Elasticseatch.php 1 <?php 2 3 namespace app\c […]

Continue reading
Posted in PHP · Tagged ElasticSearch, yii2.0框架中使用elasticsearch · Leave a comment

php+大视频文件分片分割上传+进度条+断点续传

14 4月 by helenadmin

实现过程: 将文件分割,分片上传,然后合并 前端核心code: var fileForm = document […]

Continue reading
Posted in PHP · Tagged php大视频文件分片分割上传, 进度条.断点续传 · Leave a comment

php 分解 user Agent 参数

07 4月15 4月 by helenadmin

class User_agent { var $platforms = array ( ‘wind […]

Continue reading
Posted in PHP · Tagged php分解user Agent参数, php正则分离UA · Leave a comment

PHP 单例模式优缺点及如何实现

28 3月 by helenadmin

一、什么是单例模式? 【采用单例模式的模式动机、出现原因】   对于系统中的某些类来说,只有一个实例 […]

Continue reading
Posted in PHP · Tagged PHP单例模式 · Leave a comment

Yii2 操作mysql 汇总

13 12月17 12月 by helenadmin

查询 //1.简单查询 $admin=Admin::model()->findAll($conditio […]

Continue reading
Posted in PHP · Tagged Yii2 使用数据库操作汇总, Yii2操作数据库 · Leave a comment

Yii2 操作mysql-联合查询where使用总结

13 12月13 12月 by helenadmin

简单赋值 ->where(“id=:id”, [ ‘id&#8217 […]

Continue reading
Posted in PHP · Tagged Yii2 操作mysql, Yii2 数据库操作, 联合查询where使用总结 · Leave a comment

VSCode做PHP开发的必备插件和配置

22 8月 by helenadmin

Code runner 测试代码用的 VIM — 喜欢用VIM操作的小伙伴可以加上这个,不要用am […]

Continue reading
Posted in PHP · Tagged VSCode做PHP, VSCode做PHP开发的必备插件和配置 · Leave a comment

网页中文本朗读功能开发实现

16 8月 by helenadmin

标签朗读 这个很简单了,只用根据当前是什么标签,给出提示即可。 // 标签朗读文本 var tagTextCo […]

Continue reading
Posted in PHP, Python · Tagged 文本朗读功能开发 · Leave a comment

php代码简化

15 8月 by helenadmin

变量 使用有意义的且可读的变量名 不友好的: $ymdstr = $moment->format(‘y- […]

Continue reading
Posted in PHP · Tagged php代码简化 · Leave a comment

PHP中字符串比较的常用方法

09 11月 by helenadmin

1、按字节比较 按字节比较字符串是最常用的方法。其中可能用到的函数为strcmp()和strcasecmp() […]

Continue reading
Posted in PHP · Tagged PHP中字符串比较的常用方法, 字符串比较 · Leave a comment

PHP集群session共享

08 11月08 11月 by helenadmin

集群的概念没有多复杂,其实就是多台电脑为了同一个目标在一起工作。在Web应用中,就是多个服务器提供一个站点的服 […]

Continue reading
Posted in PHP · Tagged PHPsession, PHP集群session共享 · Leave a comment

php socket_accept函数

15 10月 by helenadmin

socket_accept (PHP 4 >= 4.1.0, PHP 5) socket_accept […]

Continue reading
Posted in PHP · Tagged socket_accept, socket_accept函数 · Leave a comment

php递归无限级分类树

11 10月 by helenadmin

一.数据库设计 CREATE TABLE `bg_cate` ( `cate_Id` int(30) unsi […]

Continue reading
Posted in PHP · Tagged php递归, 无限级分类 · Leave a comment

PHP四大主流框架

11 10月 by helenadmin

ThinkPHP ThinkPHP(FCS)是一个轻量级的中型框架,是从Java的Struts结构移植过来的中 […]

Continue reading
Posted in PHP · Tagged PHP流框架 · Leave a comment

最全最详细的PHP面试题

11 10月 by helenadmin

1、__FILE__表示什么意思?(5分) 文件的完整路径和文件名。如果用在包含文件中,则返回包含文件名。自 […]

Continue reading
Posted in PHP · Tagged PHP面试题 · Leave a comment

php mysql分页开发

28 9月 by helenadmin

php+mysql实现分页,前一页后一页,尾页首页,以及中间页,被点击的页码会高亮显示。 高亮的原理是判断当前 […]

Continue reading
Posted in Database, PHP · Tagged mysql分页开发, php · Leave a comment

微信公众号开发完整教程

28 9月 by helenadmin

1.微信与公众平台的区别: 微信:即时聊天的软件,属于一对一的关系 微信公众平台:属于一对多的关系。 2.订阅 […]

Continue reading
Posted in PHP · Tagged 微信公众号开发完整教程 · Leave a comment

PHP实现将汉字转换为拼音及获取词语首字母

19 9月19 9月 by helenadmin

class Pinyin{ private $_outEncoding = “GB2312&#82 […]

Continue reading
Posted in PHP · Tagged PHP实现汉字转换为拼音, php获取词语首字母 · Leave a comment

归并排序的递归实现

25 6月 by helenadmin

归并排序(merge-sort)是建立在归并操作上的一种有效的排序算法,该算法采用分治法(divide and […]

Continue reading
Posted in PHP · Tagged 归并排序的递归实现 · Leave a comment

PHP面试试题大全

08 3月 by helenadmin

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1:变量 […]

Continue reading
Posted in PHP · Tagged PHP面试试题大全 · Leave a comment

PHP程序员的成长轨迹

03 2月 by helenadmin

第一阶段:基础阶段(基础PHP程序员) 重点:把LNMP搞熟练(核心是安装配置基本操作) 目标:能够完成基本的 […]

Continue reading
Posted in PHP · Tagged PHP程序员的成长轨迹 · Leave a comment

php二维数组某元素排序

06 1月 by helenadmin

关于排序一般我们都是通过数据库或者nosql(eg:redis)先排好序然后输出到程序里直接使用,但是有些时候 […]

Continue reading
Posted in PHP · Tagged php二维数组某元素排序 · Leave a comment

php教程- yii nginx下页面404问题解决方案

15 11月 by helenadmin

原因; 1、原来的网站在wamp环境下搭建完成,一切正常,上传到虚拟主机环境为lnmp,结果访问时可以打开主页 […]

Continue reading
Posted in PHP · Tagged yii nginx 404 · Leave a comment

php数组函数排序之rsort()-对数组的元素值进行降序排序

20 6月20 6月 by helenadmin

本文章简单的讲解一下关于php利用自身的函数对数组的元素值进行降序排序方法,有需要的参考下。 rsort() […]

Continue reading
Posted in PHP · Leave a comment

文章导航

先前文章

近期文章

  • 15款互联网人必备的AI工具,效率提升2倍
  • 多个ChatGPT通用指令
  • Python采集biaozhun政府文件
  • TensorFlow库:Python中的深度学习
  • python 本地密码管理应用

近期评论

  • helenadmin发表在《Python采集biaozhun政府文件》
  • helenadmin发表在《写给程序员的一封公开信》
  • Google发表在《About Me》
  • helenadmin发表在《ES(ElasticSearch)分布式全文搜索引擎及使用方式》
  • buy viagra发表在《About Me》

文章归档

  • 2024年12月
  • 2024年9月
  • 2024年6月
  • 2024年5月
  • 2024年3月
  • 2024年2月
  • 2024年1月
  • 2023年12月
  • 2023年11月
  • 2023年10月
  • 2023年9月
  • 2023年8月
  • 2023年7月
  • 2023年6月
  • 2023年5月
  • 2023年4月
  • 2023年3月
  • 2023年2月
  • 2023年1月
  • 2022年12月
  • 2022年8月
  • 2022年7月
  • 2022年6月
  • 2022年5月
  • 2022年4月
  • 2022年3月
  • 2022年2月
  • 2022年1月
  • 2021年12月
  • 2021年11月
  • 2021年10月
  • 2021年9月
  • 2021年8月
  • 2021年7月
  • 2021年6月
  • 2021年5月
  • 2021年4月
  • 2021年3月
  • 2021年1月
  • 2020年12月
  • 2020年11月
  • 2020年10月
  • 2020年9月
  • 2020年8月
  • 2020年7月
  • 2020年6月
  • 2020年5月
  • 2020年4月
  • 2020年3月
  • 2020年2月
  • 2020年1月
  • 2019年12月
  • 2019年11月
  • 2019年10月
  • 2019年9月
  • 2019年8月
  • 2019年7月
  • 2019年6月
  • 2019年5月
  • 2019年4月
  • 2019年3月
  • 2019年2月
  • 2019年1月
  • 2018年12月
  • 2018年11月
  • 2018年10月
  • 2018年9月
  • 2018年7月
  • 2018年6月
  • 2018年3月
  • 2018年2月
  • 2018年1月
  • 2017年12月
  • 2017年11月
  • 2017年10月
  • 2017年9月
  • 2017年8月
  • 2017年7月
  • 2017年6月
  • 2017年5月
  • 2017年4月
  • 2017年3月
  • 2017年1月
  • 2016年12月
  • 2016年11月
  • 2016年10月
  • 2016年9月
  • 2016年8月
  • 2016年7月
  • 2016年6月
  • 2016年5月
  • 2016年4月
  • 2016年3月
  • 2016年2月
  • 2015年8月
  • 2015年7月
  • 2015年6月
  • 2015年5月
  • 2014年7月
  • 2014年6月
  • 2014年5月
  • 1970年1月

分类目录

  • Database
  • focus—-实时热搜
  • IC设计
  • js&jquery
  • PHP
  • Python
  • 新技术研习
  • 服务器相关技术
  • 算法
  • 缓存技术
  • 随笔

功能

  • 注册
  • 登录
  • 文章RSS
  • 评论RSS
  • WordPress.org
© 2025 charlie笔记 ·