1 Star 0 Fork 0

alinew / crontab-Framework

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README

php定时脚本小框架

叙述


闲来无聊,想写一个定时爬虫脚本,发现多个爬虫脚本并不能很好的集中维护,所以就开发了这个框架.

框架介绍


框架基于php的fork模块开发,所以说多个任务都是并发执行的.

目录结构

config/ 配置文件目录,例如数据库配置文件,定时任务配置文件 core/ 框架核心类目录 lib/ 公共类库目录 script/ 自定义定时任务脚本目录,也就是开发目录 tmp/ 框架临时目录, 任务定时就是跟这目录有关 index.php 框架入口文件 functions.php 公共函数库 autoload.php 自动加载

类库(lib目录下)

DB.php 数据库操作类

待集成的类库

redis操作类 curl 操作类

案例演示


1.定时运行两个Hello World脚本
2.干一些邪恶的事情,例如,写N个定时任务,每秒钟执行一次,利用CURl模块,疯狂请求某个网址,呵呵呵.
3.定时操作数据库(CURD)(待续)
4.定时爬取网站数据(待续)

Empty file

About

基于linux下的多进程php框架 expand collapse
PHP
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
PHP
1
https://gitee.com/alinew/crontab.git
git@gitee.com:alinew/crontab.git
alinew
crontab
crontab-Framework
master

Search