自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 php---datatime使用

$date = new DateTime('now', new DateTimeZone('GMT')); echo $date->format('D, d M Y H:i:s') . ' GMT'; #生成格林威治时间 echo $date->getTimestamp(); #获取当前时间戳

2015-04-24 10:42:02 382

转载 cache---php控制浏览器缓存

<?php $cache_time = 60; $modified_time = @$_SERVER['HTTP_IF_MODIFIED_SINCE']; if( strtotime($modified_time)+$cache_time > time() ){ header("HTTP/1.1 304"); exit; } header("Last-Modified: ".gmd

2015-04-22 14:57:18 286

原创 linux系统管理---获取文件的大小

wc -c index.php | cut -f1 -d '  '

2015-04-10 17:15:23 305

原创 linux系统管理---同步时间

crontab -e #每天0点同步时间 0 0 * * * /usr/sbin/ntpdate time.nist.gov > /tmp/time.log

2015-04-10 16:35:31 315

原创 php调试工具---xhprof安装和使用

环境:centos6.4 32 位 1、xhprof 下载 地址:https://pecl.php.net/package/xhprof cd /home/ yum install wget wget https://pecl.php.net/get/xhprof-0.9.4.tgz tar -zxvf xhprof-0.9.4.tgz cd xhprof-0.9.4 cd exte

2015-04-10 09:44:46 679

原创 config---配置文件中tab转spaces

目的兼容其它编辑器,统一格式 Preference -> Settings -- User 中添加 "translate_tabs_to_spaces":true { "color_scheme": "Packages/Color Scheme - Default/custom.tmTheme", "font_size": 14.0, "ignored_packages": [

2015-04-07 11:40:10 517

原创 shell---解决shell脚本中回车换行导致command not found

sublime text View->Line endings->Unix editplus Document->File Fomart(FR/LF)->Change File Format

2015-04-07 11:36:05 2937 1

原创 CI项目架构(3)---添加firephp 输出sql 执行语句 到 filefox开发工具栏

1、下载firephp http://www.firephp.org/ 修改文件名:FirePHP.class.php => firephp.php 修改类名:FirePHP => firephp 移动到application/libraries/ 目录下 2、在system/database/DB_driver.php 中,增加 返回全部sql 的方法 /**

2015-04-02 17:25:21 756

转载 CentOS开启SELinux导致samba无法访问的解决办法

转载于:http://1381479.blog.51cto.com/1371479/417950 CentOS开启SELinux导致samba无法访问的解决办法 安装CentOS默认是开启SELinux的,所以会导致samba、ftp等应用程序无法访问相应目录,解决办法如下 开启Samba用户HOME目录权限 /usr/sbin/setsebool -P samba_enable_ho

2015-04-02 14:22:55 5089

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除