有朋友说给出下面这句最简单的禁止页面缓存的方法
php中Ubb代码编辑器程序代码
ThinkPHP中调用FCKeditor编辑器的代码
应用步骤:
1、下载FCKeditor2.x版本,将解压后的文件夹FCKeditor复制到ThinkPHP文件夹下的Vendor目录下,以便符合THinkPHP的第三方类库引入规则。
2、修改参数:
首先,用EditPlus等软件打开FCKeditor目录下的fckeditor_php5.php文件,找到第130行。出现内容如下:
php下实现文件下载实现代码
php中sprintf定义和用法
php删除数组元素几种方法
array_slice() 第一个参数是要切割的数组,第二个参数是起始位置,第三个参数是长度。
就是 切割 $arr这个数组,从第0个元素往后数3个。
中文汉字正则表达式javascript/php
php中session用法详细介绍
phpexcel读写xls文件实现程序
<?php
include_once('PHPExcel.php');
//read excel file;
$PHPExcel = new PHPExcel();
$PHPReader = new PHPExcel_Reader_Excel5();
$PHPExcel = $PHPReader->load('/home/yuanjianjun/taobao_cat.xls');
$currentSheet = $PHPExcel->getSheet(0);
$allColumn = $currentSheet->getHighestColumn();
$allRow = $currentSheet->getHighestRow();
for($currentRow = 1; $currentRow<=$allRow; $currentRow++){
for($currentColumn='A'; $currentColumn<=$allColumn; $currentColumn++){
$address = $currentColumn.$currentRow;
echo $currentSheet->getCell($address)->getValue()."t";
}
echo "n";
}
php中session_unset与session_destroy的用法与区别
PHP中array_slice函数用法介绍
array_slice() 函数在数组中根据条件取出一段值,并返回。