05 2015 档案

基于PHP的crontab定时任务管理
摘要:php做不到每天定时执行,只有java或者c可以,因为php是不访问页面就不会动得代码,但是有一个方法可以曲线救国你写一个页面是你要每天定时执行的页面,然后视你的操作系统而言,做定时任务,定时去访问这个页面如果是windows请使用任务计划功能如果是linux请使用定时任务Cron,在定时的时候使用... 阅读全文

posted @ 2015-05-29 13:42 小V_chen 阅读(949) 评论(0) 推荐(0)

PHP通过url下载远程图片到本地
摘要:function GrabImage($url,$filename) { if($url==""):return false;endif; ob_start(); readfile($url); $img = ob_get_contents(); ob_end_clean(); $size = st... 阅读全文

posted @ 2015-05-27 21:02 小V_chen 阅读(772) 评论(0) 推荐(0)

php 关了浏览器也可以自动运行脚本
摘要: 阅读全文

posted @ 2015-05-22 15:39 小V_chen 阅读(569) 评论(0) 推荐(0)

php模拟post 提交表单
摘要:"phoneError")); exit;}$arr = array ("phone"=>$phone,"mac"=>"aabbccdreeff");$data=json_encode($arr);//$url='http://mobile.9797168.com:8080/uc/ask_reg?d... 阅读全文

posted @ 2015-05-22 15:38 小V_chen 阅读(8410) 评论(0) 推荐(0)

dedecms 自定义标签的方法
摘要:function lib_demotest(&$ctag,&$refObj){global $dsql,$envs;//属性处理$attlist="row|12,titlelen|24";FillAttsDefault($ctag->CAttribute->Items,$attlist);extra... 阅读全文

posted @ 2015-05-22 15:34 小V_chen 阅读(1632) 评论(0) 推荐(0)

php自动运行
摘要: 阅读全文

posted @ 2015-05-20 16:53 小V_chen 阅读(369) 评论(0) 推荐(0)

php数据库操作类
摘要:time = $this->microtime_float(); require_once("config.db.php"); $this->connect($db_config["hostname"], $db_config["username"], $db_confi... 阅读全文

posted @ 2015-05-20 16:12 小V_chen 阅读(378) 评论(0) 推荐(0)

完整的PHP MYSQL数据库类
摘要:db_host = $db_host; $this->db_user = $db_user; $this->db_pwd = $db_pwd; $this->db_database = $db_database; $this->conn = $... 阅读全文

posted @ 2015-05-20 15:29 小V_chen 阅读(330) 评论(0) 推荐(0)

一个经典的PHP验证码类分享
摘要:我们通过PHP的GD库图像处理内容,设计一个验证码类Vcode。将该类声明在文件vcode.class.php中,并通过面向对象的特性将一些实现 的细节封装在该类中。只要在创建对象时,为构造方法提供三个参数,包括创建验证码图片的宽度、高度及验证码字母个数,就可以成功创建一个验证码类的对象。 该类的声... 阅读全文

posted @ 2015-05-20 14:12 小V_chen 阅读(380) 评论(0) 推荐(0)

php如何获取本地手机号
摘要:"; $p = xml_parser_create(); xml_parse_into_struct($p, $lines_string, $vals, $index); xml_parser_free($p); $return_... 阅读全文

posted @ 2015-05-20 11:41 小V_chen 阅读(2243) 评论(0) 推荐(0)

dedecms 标签的基本用法
摘要:1.关键描述调用标签: 2.路径调用标签:{dede:field name='templeturl'/}{dede:global.cfg_templets_skin/}3.网站标题调用标签: dede:global name='cfg_webname'/}4.栏目导航调用标签:首页{dede:c... 阅读全文

posted @ 2015-05-19 10:02 小V_chen 阅读(431) 评论(0) 推荐(0)

导航