使用CURL模拟访问网页,保留返回的COOKIE <?php class dnspod { public static function api_call($api, $data) { $api = 'https://dnsapi.cn/' . $api; echo $api . PHP_EOL;  ...
                            
                            
                                分类:
Web程序   时间:
2021-01-30 11:45:04   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    intdiv () 对除法结果取整 int intdiv ( int $dividend , int $divisor ) 说明:返回 dividend 除以 divisor 商数的整数部分。参数: dividend 被除数。 divisor 除数。 返回值: dividend 除以 divisor ...
                            
                            
                                分类:
Web程序   时间:
2021-01-29 12:20:47   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    正则表达式 使用方法: ①:描述我们要找的字符串的规律 ②:调用函数,执行该正则表达式 PHP: //把字符串haha找出来 $str="haha,this is my blog" preg_match_all('/haha/',$str,$res); print_r($res); 在PHP里正则必 ...
                            
                            
                                分类:
其他好文   时间:
2021-01-29 12:19:14   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                一 初始数据库 数据库管理软件:本质就是一个c/s架构的套接字程序	服务端套接字	客户端套接字	操作系统:Linux	操作系统	计算机(本地文件)	计算机硬件 例如:关系型数据库管理软件MySQL、Oracle去ioe 非关系型数据库管理软件redis、memcache、mongodb s c se ...
                            
                            
                                分类:
编程语言   时间:
2021-01-29 11:58:19   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                在Library/Think/Model.class.php 这个基础model类中在添加add,修改save,和删除delete 时各自回调用两个回调函数. 使用这两个回调函数会给开发带来方便. 1 . add()方法回调函数 // 插入数据前的回调方法 protected function _b ...
                            
                            
                                分类:
Web程序   时间:
2021-01-29 11:44:19   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                难度1-Low 查看代码: <?php // Is there any input? if( array_key_exists( "name", $_GET ) && $_GET[ 'name' ] != NULL ) { // Feedback for end user echo '<pre>He ...
                            
                            
                                分类:
其他好文   时间:
2021-01-29 11:44:05   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    验证器类:Validate.php <?php namespace framework\library; class Validate { /** * 当前验证规则 * @var array */ protected $rule = []; /** * 验证提示信息 * @var array */  ...
                            
                            
                                分类:
Web程序   时间:
2021-01-28 11:58:59   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    接着上篇 https://www.cnblogs.com/cuocuo/p/14329868.html 当exp为bind的时候,虽然会拼接,但是find()和select()是没办法利用的,我们需要更改一下代码 <?php namespace Home\Controller; use Think\ ...
                            
                            
                                分类:
Web程序   时间:
2021-01-28 11:55:31   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                案例截图: 详解: 1) Application/Admin/Controller/目录下新建控制器文件AjaxController.class.php 1 <?php 2 namespace Admin\Controller; 3 use Think\Controller; 4 class Aja ...
                            
                            
                                分类:
Web程序   时间:
2021-01-27 14:04:07   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    目录 背景 目前,在工作中用到的分布式缓存技术主要是redis和memcached两种 缓存的目的是为了在高并发系统中有效的降低DB数据库的压力 缓存服务器的选型和特点 1.memcache服务器 memcache服务器是没有集群概念的。所有的存储分发全部交给memcache client去做,这里 ...
                            
                            
                                分类:
其他好文   时间:
2021-01-27 14:00:46   
                                阅读次数:
0