摘要: php rmdir()函数 rmdir ― 删除空目录 语法: bool rmdir ( string $dirname [, resource $context ] )尝试删除 dirname 所指定的目录。 该目录必须是空的,而且要有相应的权限。 失败时会产生一个E_WARNING级别的错误。参 阅读全文
posted @ 2016-12-10 16:52 3002059249 阅读(1083) 评论(0) 推荐(0) 编辑
摘要: <?php//封装一个表单验证类//中文验证、邮箱验证、电话号码、手机、QQ、身份证、(由字母、数字、下划线组成,不能以数字开头)header('content-type:text/html;charset=utf-8');class Form{/*//中文验证的方法//参数:$str,$num1, 阅读全文
posted @ 2016-12-10 16:50 3002059249 阅读(213) 评论(0) 推荐(0) 编辑
摘要: * @link http://www.smarty.net/* @copyright 2008 New Digital Group, Inc.* @author Monte Ohrt <monte at ohrt dot com>* @author Uwe Tews* @author Rodney 阅读全文
posted @ 2016-12-10 16:46 3002059249 阅读(479) 评论(0) 推荐(0) 编辑
摘要: 主要就是使用了register_post_type 函数。 1、创建插件目录 新建一个文件夹用来存放插件文件,这里我就命名这个文件夹为myMood 2、创php代码文件 在刚才创建的文件夹里面新建一个php文件,命名为myMood,用来书写插件代码 3、添加头部描述 复制代码 代码如下:<?php/ 阅读全文
posted @ 2016-12-10 16:42 3002059249 阅读(1366) 评论(0) 推荐(0) 编辑