PHP
文章平均质量分 75
imDaBaiCai
这个作者很懒,什么都没留下…
展开
-
常用MySql命令
MySQL常用命令 1、MySQL常用命令 create database name; 创建数据库 use databasename; 选择数据库 drop database name 直接删除数据库,不提醒 show tables; 显示表 describe tablename; 表的详细描述 select 中加上distinct去转载 2008-09-14 16:23:00 · 398 阅读 · 0 评论 -
PHP实现HTML标签转换
对含有HTML标签的文档encode,存入数据库后取出还原。双引号可以自己加上function HtmlEncode($fString){if($fString!=""){ $fString = str_replace( >, >,$fString); $fString = str_replace( , ,$fString);原创 2008-09-17 21:17:00 · 817 阅读 · 0 评论 -
discuz的分页函数。
function multi($num, $perpage, $curpage, $mpurl, $maxpages = 0, $page = 10, $autogoto = TRUE, $simple = FALSE) { global $maxpage; $ajaxtarget = !emptyempty($_GET[ajaxtarget]) ? " aj原创 2008-10-14 23:19:00 · 819 阅读 · 0 评论 -
PHP文件目录操作小示例
$ar=array();$d=dir(".");while($f=$d->read()){ $ar[name][]=$f; $ar[type][]=is_dir($f)?"dir":"file"; $ar[time][]=date("Y-m-dH:i:s",filectime($f)); $ar[size][]=files原创 2008-10-17 20:46:00 · 745 阅读 · 0 评论 -
microtime
echo microtime() // 输出类如 0.78125100 1226930018 microtime() 当前 Unix 时间戳以及微秒数。本函数仅在支持 gettimeofday() 系统调用的操作系统下可用。 如果调用时不带可选参数,本函数以 "msec sec" 的格式返回一个字符串,其中 sec 是自 Unix 纪元(0:00:00 January 1, 1970原创 2008-11-17 21:55:00 · 563 阅读 · 0 评论