<?php /** * author: River * createTime: 2018/7/9 */ class MyOrm implements ArrayAccess …
<?php /* * 文章内容分页类 */ header("Content-type: text/html; charset=utf-8"); class cutpage {…
/* * ************************* * 生成随机字符串,可以自己扩展 //若想唯一,只需在开头加上用户id * $type可以为:upper(只生成大写字…
/** * 下载远程图片 * @param string $url 图片的绝对url * @param string $filepath 文件的完整路径(例如/www/images…
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>…
//实现使用curl模拟百度蜘蛛进行采集 class Curlcontent{ protected function _GetContent( $url ) { $this->…
<?php /** * php 繁体简体互转类 * * @author 微信号:daimajiqiao * @copyright Copyright (c) 2016-201…
<?php /** * global.func.php 公共函数库 */ /** * 返回经addslashes处理过的字符串或数组 * @param $string 需要处…
<?php /** * Class Curl curl简单封装 get post */ class Curl { /** * @brief get请求 * @param $u…
<?php /* * PHP简单利用token防止表单重复提交 * 此处理方法纯粹是为了给初学者参考 */ session_start(); var_dump($_POST)…
/** * 遍历文件夹 * @param string $dir * @param boolean $all true表示递归遍历 * @return array */ publi…
<?php $url = 'http://www.baidu.com/index.php?m=content&c=index&a=lists&cati…