随笔分类 -  PHP

This is all php.
摘要:http_build_query()函数的作用是使用给出的关联(或下标)数组生成一个经过 URL-encode 的请求字符串。 写法格式:http_build_query ( mixed $query_data [, string $numeric_prefix [, string $arg_sep 阅读全文
posted @ 2020-08-21 12:06 PHP小媛 阅读(252) 评论(0) 推荐(0)
摘要://批量导出配送清单 public function get_all_downexcel() { require_once ROOT_PATH . '/ThinkPHP/Library/Vendor/phpexcel/PHPExcel.php'; $gpc = I('request.'); $lis 阅读全文
posted @ 2020-08-20 12:12 PHP小媛 阅读(603) 评论(0) 推荐(0)
摘要:<?php /** * Created by PhpStorm. * User: s * Date: 2018/11/3 * Time: 8:33 */ class PdoClass { protected $_pdo; public function __construct() { $this-> 阅读全文
posted @ 2020-02-17 20:02 PHP小媛 阅读(220) 评论(0) 推荐(0)
摘要:<?php /** * Created by PhpStorm. * User: s * Date: 2018/11/20 * Time: 10:07 */ class CurlClass { protected $_pdo; public function __construct() { $thi 阅读全文
posted @ 2020-02-17 19:56 PHP小媛 阅读(192) 评论(0) 推荐(0)
摘要:1. null合并运算符(??) ??语法: 如果变量存在且值不为NULL,它就会返回自身的值,否则返回它的第二个操作数. 2. define() 定义常量数组 3. 组合比较符(<=>) 组合比较符用于比较两个表达式.当$a小于、等于或大于$b时它分别返回-1、0或1. 比较的原则是沿用PHP的常 阅读全文
posted @ 2019-07-02 15:27 PHP小媛 阅读(1267) 评论(0) 推荐(0)
摘要:首先,在电脑上搜索 环境变量 进入 然后点击 环境变量 进入到 环境变量后 双击进入 添加 php 的环境 点击确定,完毕。 阅读全文
posted @ 2019-05-23 10:06 PHP小媛 阅读(628) 评论(0) 推荐(0)
摘要:https://www.kancloud.cn/nickbai/php7/363267 阅读全文
posted @ 2019-05-05 15:56 PHP小媛 阅读(159) 评论(0) 推荐(0)
摘要:1 _pdo =new PDO("mysql:host=127.0.0.1;dbname=student","root","root"); 9 $this->_pdo->query("set names gbk"); 10 } 11 //curl 12 public function get($url) 13 { 14 $ch ... 阅读全文
posted @ 2019-04-15 18:48 PHP小媛 阅读(1420) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/youzhouliu/article/details/78952453 阅读全文
posted @ 2019-04-11 10:09 PHP小媛 阅读(118) 评论(0) 推荐(0)
摘要:1 控制器层 2 //秒杀 首先要判断库存 其次高并发 然后入库 3 public function goods_do() 4 { 5 $gid=input("get.gid"); 6 $user_name=Session::get("user_name"); 7 $obj = new Goods(); 8 ... 阅读全文
posted @ 2019-04-04 15:23 PHP小媛 阅读(421) 评论(0) 推荐(0)
摘要:在httpd.conf中加入 index.php 和 index.html 阅读全文
posted @ 2019-02-18 19:10 PHP小媛 阅读(396) 评论(0) 推荐(0)
摘要:什么是跨域? 跨域,指的是浏览器不能执行其他网站的脚本。它是由浏览器的同源策略造成的,是浏览器对JavaScript施加的安全限制。 所谓同源是指,域名,协议,端口均相同,不明白没关系,举个栗子: http://www.123.com/index.html 调用 http://www.123.com 阅读全文
posted @ 2019-02-14 14:27 PHP小媛 阅读(255) 评论(0) 推荐(0)
摘要:1 $hou_time=strtotime(date("24:00:00",time())); 2 var_dump($hou_time); 阅读全文
posted @ 2019-01-17 14:38 PHP小媛 阅读(189) 评论(0) 推荐(0)
摘要:首先要下载 php_redis.dll 和 php_igbinary.dll 在官网(https://windows.php.net/downloads/pecl/snaps/redis/3.1.4/)中下载 必须按照如图方式进行下载 把php版本切换成7.0 打开php的文件所在位置,进入ext中 阅读全文
posted @ 2018-12-11 10:37 PHP小媛 阅读(181) 评论(0) 推荐(0)
摘要:<?php/** * Created by PhpStorm. * User: s * Date: 2018/11/6 * Time: 18:14 */include "vendor/autoload.php";//引入类use QL\QueryList;class QueClassTwo{ pro 阅读全文
posted @ 2018-11-07 10:48 PHP小媛 阅读(205) 评论(0) 推荐(0)
摘要:<?php/** * Created by PhpStorm. * User: song tong jing * Date: 2018/11/3 * Time: 8:33 */class PdoClass{ protected $_pdo; public function __construct() 阅读全文
posted @ 2018-11-07 10:46 PHP小媛 阅读(262) 评论(0) 推荐(0)
摘要:1、查看php的版本(我的是5.6) 2、打开phpinfo查看第四行 3、然后选择要安装的文件 4、复制到 ext中 复制后 5、打开配置文件php.ini 把 extension=php_memcache.dll 复制到如下图中 6、重启环境phpstudy 7、打开phpinfo,搜索memc 阅读全文
posted @ 2018-11-07 10:40 PHP小媛 阅读(613) 评论(0) 推荐(0)
摘要:1、弹出警告框,带确定按钮:alert 2、弹出,选择框 有确认和取消按钮 confirm 3、 弹出,输入框 : prompt 阅读全文
posted @ 2018-10-22 13:48 PHP小媛 阅读(8110) 评论(0) 推荐(0)
摘要:HTML页面 阅读全文
posted @ 2018-10-18 09:46 PHP小媛 阅读(333) 评论(0) 推荐(0)
摘要:PHP页面: 阅读全文
posted @ 2018-10-15 10:11 PHP小媛 阅读(989) 评论(0) 推荐(0)