![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
php
luo6490468
这个作者很懒,什么都没留下…
展开
-
php小笔记
Normal 0 7.8 磅 0 2 false false false MicrosoftInternetExplorer4 <object cl原创 2009-11-16 17:14:00 · 259 阅读 · 0 评论 -
Zend_Search_Lucene索引更新
更新一个索引 //更新多一个索引 $index = new Zend_Search_Lucene(INDEX_DATA); Zend_Search_Lucene_Analysis_Analyzer::setDefault(new Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8_CaseInse原创 2009-11-27 09:33:00 · 946 阅读 · 0 评论 -
简单的缩略图类
<?phpclass Custom_Controller_Plugin_ImageHelper{ protected $_handle = null; function __construct($handle) { $this->_handle = $handle; } public static function createFro原创 2009-11-28 17:01:00 · 533 阅读 · 0 评论 -
Zend_Search_Lucence中文搜索
public function searchAction(){ if ($this->_request->isPost()) { $index = new Zend_Search_Lucene(./application/data/my-index); Zend_Search_Lucene_Analysis_Analyzer::setDefault(new Zend_原创 2009-11-26 11:50:00 · 800 阅读 · 0 评论 -
php对图片添加水印类
/* * 功能:PHP图片水印 (水印支持图片或文字) * 参数: * $product_img 背景图片,即需要加水印的图片,暂只支持GIF,JPG,PNG格式; * $waterPos 水印位置,有10种状态,0为随机位置; * 1为顶端居左,2为顶端居中,3为顶端居右; *转载 2009-11-19 15:45:00 · 381 阅读 · 0 评论 -
php上传中文文件名乱码解决方法
使用iconv函数! 一般windows系统的字符编码为gb2312,如果php设置的编码为utf-8就会产生乱码。 使用$string=iconv(UTF-8,gb2312,$string)转码文件名即可原创 2009-11-16 17:48:00 · 862 阅读 · 1 评论 -
PHP正则表达式详解(转)
一.正则表达式 1.匹配符 1)头匹配符"^":如^0754,只匹配开头为0754的字符串 2)尾匹配符"$":如0754$,只匹配结尾为0754的字符串 3)全字匹配:将^和$结合,如^0754$,匹配0754字符串 2.转义字符转载 2009-11-16 17:36:00 · 353 阅读 · 0 评论 -
PHP杂记
preg_replace -- 执行正则表达式的搜索和替换array_push -- 将一个或多个单元压入数组的末尾(入栈) preg_match -- 进行正则表达式匹配exif_imagetype($file) ---图像类型;echo "alert(得到);history.back();";exit;date_default_timezone_set(原创 2009-11-16 17:21:00 · 466 阅读 · 0 评论 -
.htaccess规则
htaccess可以做大量范围的事情,包括:文件夹密码保护、用户自动重新指向、自定义错误页面、变更你的文件扩展名、屏蔽特定的用户IP地址、只允许特定的IP地址、停止目录表以及使用其他文件作为index文件,等等......1. Introduction 介绍文件名 .htaccess 属性 644 (RW-R–R–)htaccess会影响它所在目录下的所有子目录注意大多数内容转载 2009-11-16 18:01:00 · 352 阅读 · 0 评论 -
简单zend_feed使用
RSS订阅 public function rssAction(){ $this->_helper->viewRenderer->setNoRender(); header("Content-Type: application/xml"); date_default_timezone_set("Asia/Shanghai"); $feedArray = a原创 2009-11-28 16:53:00 · 364 阅读 · 0 评论