kristain

博客园 首页 新随笔 联系 订阅 管理

11 2013 档案

摘要:mod_rewrite是Apache的一个非常强大的功能,它可以实现伪静态页面。下面我详细说说它的使用方法!对初学者很有用的哦!1.检测Apache是否支持mod_rewrite通过php提供的phpinfo()函数查看环境配置,通过Ctrl+F查找到“Loaded Modules”,其中列出了所有apache2handler已经开启的模块,如果里面包括“mod_rewrite”,则已经支持,不再需要继续设置。如果没有开启“mod_rewrite”,则打开目录 您的apache安装目录“/apache/conf/” 下的 httpd.conf 文件,通过Ctrl+F查找到“LoadModule 阅读全文
posted @ 2013-11-26 00:05 kristain 阅读(251) 评论(0) 推荐(0)

摘要:linux文件打包tar.gz的命令FileName:打包后的文件名DirName:需要打包的文件名01-.tar格式解包:[*******]$tarxvfFileName.tar打包:[*******]$tarcvfFileName.tarDirName(注:tar是打包,不是压缩!)02-.gz格式解压1:[*******]$gunzipFileName.gz解压2:[*******]$gzip-dFileName.gz压缩:[*******]$gzipFileName03-.tar.gz格式解压:[*******]$tarzxvfFileName.tar.gz压缩:[*******]$t 阅读全文
posted @ 2013-11-14 20:19 kristain 阅读(3294) 评论(0) 推荐(0)

摘要:1php5.4下安装的时候处理问题,StrictStandards:Non-staticmethodcls_image::gd_version()shouldnotbecalledstaticallyin\install\includes\lib_installer.phponline31 解决:找到install/includes/lib_installer.php中的第31行returncls_image::gd_version();然后在找到include/cls_image.php中的678行,发现gd_version()方法未声明静态static,所以会出错。这时候只要: 将fu.. 阅读全文
posted @ 2013-11-14 13:28 kristain 阅读(6658) 评论(2) 推荐(1)