php常用数组函数用法总结
array_change_key_case — 返回字符串键名全为小写或大写的数组
array_chunk — 将一个数组分割成多个
array_combine — 创建一个数组,用一个数组的值作为其键名,另一个...
Sam
4年前 (2014-07-26) 153℃ 0评论
0喜欢
php常用时间日期函数
checkdate — 验证一个格里高里日期
date_default_timezone_get — 取得一个脚本中所有日期时间函数所使用的默认时区
date_default_timezone_set — 设定用于一...
Sam
4年前 (2014-07-25) 160℃ 0评论
0喜欢
php常用系统函数
class_exists — 检查类是否已定义
get_class_methods — 返回由类的方法名组成的数组
get_class_vars — 返回由类的默认属性组成的数组
get_class — 返回对象的类名
...
Sam
4年前 (2014-07-25) 123℃ 0评论
0喜欢
php常用文件目录函数
chdir — 改变目录
chroot — 改变根目录
dir — directory 类
closedir — 关闭目录句柄
getcwd — 取得当前工作目录
opendir — 打开目录句柄
readdir —...
Sam
4年前 (2014-07-25) 121℃ 0评论
0喜欢
unix时间戳(从Unix 纪元(January 1 1970 00:00:00 GMT)到给定时间的秒数。)。以下简称时间戳。
返回某一时间的时间戳。
time();
//获取当前本机时间的时间戳。
mktime(时,分,秒,月,日,年)...
Sam
4年前 (2014-07-24) 142℃ 0评论
0喜欢
php处理文件流常用函数
flush — 刷新输出缓冲
ob_clean — Clean (erase) the output buffer
ob_end_clean — Clean (erase) the output buffer an...
Sam
4年前 (2014-07-22) 138℃ 0评论
0喜欢
清除bom的PHP程序代码bom.php如下:
PHP
<?php
if (isset($_GET['dir'])){
$basedir=$_...
Sam
4年前 (2014-07-22) 273℃ 0评论
0喜欢
php操作session函数总结
session_cache_expire — Return current cache expire
session_cache_limiter — Get and/or set the current c...
Sam
4年前 (2014-07-20) 144℃ 0评论
0喜欢
1、phpstorm显示当前文件的函数或类的列表?
View—>Tool Windows—>Structure
2、phpstorm显示行号?
View—>Active Editor—>Show Line Numbe...
Sam
4年前 (2014-07-09) 464℃ 0评论
0喜欢
某些网站系统需要用户上传图片等文件到某些目录下,难免程序有些漏洞,导致用户上传了php、cgi等等可执行的文件,导致网站被黑被攻击。
此时我们可以通过nginx来禁止用户访问这些目录下的可执行文件。
nginx配置
...
Sam
4年前 (2014-07-09) 132℃ 0评论
0喜欢