摘要:
<?php/*本文章是在网上搜寻其他关于wordpress创建插件文章并亲自实践总结而来的代码。参考文章网址有 http://www.ashuwp.com/courses/level/optionpage 很好的教程,简单易懂http://www.akasuna.com/2010/10/20/how-to-develop-a-plug-in/ 也是一篇不错的文章在根目录下 wp-content/plugins 新建存放新建插件文件夹 my_wp_pluginmy_wp_plugin 中新建 my_wp_plugin.php 文件内容:*//*Plugin Name: 插件名称Plugin 阅读全文
摘要:
<?phpdefine('NUM_BIG_BLOCK_DEPOT_BLOCKS_POS', 0x2c);define('SMALL_BLOCK_DEPOT_BLOCK_POS', 0x3c);define('ROOT_START_BLOCK_POS', 0x30);define('BIG_BLOCK_SIZE', 0x200);define('SMALL_BLOCK_SIZE', 0x40);define('EXTENSION_BLOCK_POS', 0x44);define('NUM 阅读全文
摘要:
<?php/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: *//*** A class for reading Microsoft Excel Spreadsheets.** Originally developed by Vadim Tkachenko under the name PHPExcelReader.* (http://sourceforge.net/projects/phpexcelreader)* Based on the Java version by Andy Khan (http://www. 阅读全文
摘要:
_ole =& new OLERead(); 替换成 $this->_ole = new OLERead();*/require_once 'Excel/reader.php';//需要读取 excel 的页面引用 reader.php 文件$excel_data = new Spreadsheet_Excel_Reader ();//实例化一个读取excel对象$excel_data->setOutputEncoding ( 'utf-8' );//赋编码格式//连接数据库$conn = mysql_connect ( 'local 阅读全文