![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PHP类库、API
文章平均质量分 77
wust_star
须知少时凌云志,曾许人间第一流。
展开
-
phpexcel类库--百度参考
PHPExcel是相当强大的 MS Office Excel 文档生成类库,当需要输出比较复杂格式数据的时候,PHPExcel 是个不错的选择。不过其使用方法相对来说也就有些繁琐。列举以记之。 -- PHP Code -- //设置PHPExcel类库的include path set_include_path('.'. PATH_SEPARATOR . 'D:\Zeal\PHP_LI转载 2013-01-11 12:21:43 · 288 阅读 · 0 评论 -
ckeditor用户自定义配置文件config.js
1:首先页面引入这个js包; 2:jsp页面配置编辑框js代码: CKEDITOR.replace('content',{customConfig : '/ckeditor/forum_config.js'} ); 3:将用户自定义的配置文件forum_config.js放到ckeditor根目录下或者其他任何地方(必须和j转载 2013-08-15 09:55:04 · 2628 阅读 · 0 评论 -
php FPDF类库应用实现代码
先给一个中文参考手册: http://twpug.net/docs/fpdf152/index.htm http://www.lakeice.com/?action=show&id=6 中文一般不需要makefont。内嵌字体不适合中文,太大了。 默认的字体不用说了。实际上下面的代码就足够了: require_once "chinese.php"; $pdf=new PDF_Chin转载 2012-06-08 23:14:38 · 1324 阅读 · 0 评论 -
phpExcel中文帮助手册
下面是总结的几个使用方法 include 'PHPExcel.php'; include 'PHPExcel/Writer/Excel2007.php'; //或者include 'PHPExcel/Writer/Excel5.php'; 用于输出.xls的 创建一个excel $objPHPExcel = new PHPExcel(); 保存excel—2007格式 $objWriter转载 2012-06-08 22:18:39 · 4458 阅读 · 0 评论 -
自己写的FPDF生成PDF
参考了BOSS的代码和网络资料,效果如图: <?php /** * Require Core File */ require_once("../../common/initialize.php"); require_once("../../common/fpdf/chinese-unicode.php"); /** * Check Authority */ CheckAuthLevel(0原创 2012-06-09 11:07:01 · 458 阅读 · 0 评论 -
php导出和导入Excel文件
<? //设置PHPExcel类库的include path set_include_path('.'. PATH_SEPARATOR . 'D:\Zeal\PHP_LIBS' . PATH_SEPARATOR . get_include_path()); /** * 以下是使用示例,对于以 //// 开头的行是不同的可选方式转载 2012-06-08 22:27:09 · 383 阅读 · 0 评论 -
PHPExcel 类库的使用技巧
PHP导出Excel选择PHPExcel的朋友相信是非常之多的,下面给大家简单的介绍一下关于PHPExcel的一些基本的函数和使用方法,具体见下面的代码: copyright www.00isp.com / ** Error reporting */ error_reporting(E_ALL); / ** PHPExcel */ require_once'../Classes/PHPExc转载 2012-06-08 22:23:39 · 786 阅读 · 0 评论 -
根据两点间的经纬度计算距离
最近用到了geohash(参考《geohash:用字符串实现附近地点搜索》)来实现附近搜索的功能,在《微信、陌陌架构方案分析》文中提供了一个php的geohash类直接能对经纬地址编码成字符串, 而其中包含一个getDistance方法获取两点间的距离,但在sphinx中使用过滤附近地标的方法SetGeoAnchor发现返回的距离值有误,遂google出以下方法,经测试可用。。 /**转载 2013-03-12 15:12:32 · 503 阅读 · 0 评论 -
PHPExcel 导出2003和2007的excel文档实例
require_once 'common/excel/PHPExcel.php'; require_once 'common/excel/phpExcel/Writer/Excel2007.php'; require_once 'common/excel/phpExcel/Writer/Excel5.php'; include_once 'common/excel/phpExcel/I转载 2012-06-09 10:59:06 · 1503 阅读 · 0 评论 -
php中ckeditor的配置方法
1. 下载安装 CKEditor: http://ckeditor.com/ 解压下载到的CKEditor放到网站的路径中即可 2. 下载安装 CKFinder: http://ckfinder.com/download 解压下载到的CKFinder放到与CKEditor同一目录中即可 3. 在网页中使用 CKEditor 和 CKFinder: CKEditor 实际是替换一转载 2013-08-15 09:27:30 · 405 阅读 · 0 评论