摘要: MySQL 函数mysql_ affected_ rowsmysql_ client_ encodingmysql_ closemysql_ connectmysql_ create_ dbmysql_ data_ seekmysql_ db_ namemysql_ db_ querymysql_ drop_ dbmysql_ errnomysql_ errormysql_ escape_ stringmysql_ fetch_ arraymysql_ fetch_ assocmysql_ fetch_ fieldmysql_ fetch_ lengthsmysql_ fetch_ objec 阅读全文
posted @ 2011-02-09 16:54 Jake.Xu 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 在PHP中,mysqli 已经很好的封装了mysql事务的相关操作。如下示例:view plaincopy to clipboardprint?$sql1="updateUsersetScoreCount=ScoreCount+10whereID='123456'";$sql2="updateScoreDetailsetFScore=300whereID='123456'";$sql3="insertintoScoreDetailID,Score)values('123456',60)" 阅读全文
posted @ 2011-02-09 16:17 Jake.Xu 阅读(411) 评论(0) 推荐(0) 编辑
摘要: 1.PHP的文件上传/资源指令1.file_uploads=on/off2.max_execution_time=integer3.memory_limit=integer M4.upload_max_filesize=integer M5.upload_tmp_dir=string6.post_max_size=integer M2.$_FILES数组1.$_FILES['userfile']['error']2.$_FILES['userfile']['name']3.$_FILES['userfile'][& 阅读全文
posted @ 2011-02-09 13:37 Jake.Xu 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 1.验证日期bool checkdate(int month, int day, int year)2.格式化日期和时间string date(format[, timestamp])3.mixed gettimeofday([return_float])转换友好时间值4.getdate([timestamp])5.处理时间戳time()mktime(hour[,minute[,second[,month[,day[,year[,is_dst]]]]]])1.设置默认的本地化环境setlocale(mixed category,array locale)2.strftime(format[,t 阅读全文
posted @ 2011-02-09 11:01 Jake.Xu 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 1.获取路径的文件名basename(path[,suffix])2.获取路径的目录dirname(path)3.了解更多关于路径的信息array pathinfo(path)4.确定绝对路径realpath(path)1.确定文件大小filesize(filename)2.计算磁盘可用空间disk_free_space(directory)3.计算磁盘总容量disk_total_space(directory)1.确定文件的最后访问时间fileatime(filename)2.确定文件的最后改变时间filectime(filename)3.确定文件的最后修改时间filemtime(filen 阅读全文
posted @ 2011-02-09 09:59 Jake.Xu 阅读(206) 评论(0) 推荐(0) 编辑