echo ""; echo ""; echo ""; echo ""; if(!is_admin){echo "";} » PHP 仲子说

欢迎您光临我的个人网站!


2009-06-22

在使用PHPExcel导出Excel时出现的几个错误的解决办法

Posted in PHP, FreeBSD/Unix服务器 at 13:55 by 仲远

标签:
Zhongyuan Wang

97100fe403b8

PHPExcel?PHP???????????????Microsoft Excel????????????????????????
??Microsoft Office?????????Office2003?????????????????????????Office?????????????????????????????????????Microsoft Office Word?Microsoft Office PowerPoint?Microsoft Office Excel?????Microsoft Office 2007???????????XML????????????????????Office2007???Open Office XML?OOXML?????????????????????????????4???ISO???????????????OOXML????????????????????
???OOXML??????“?????????????”?“?????????”????????????????????...查看全文

2009-05-29

PHPExcel中导出Excel出错的一种可能原因

Posted in PHP at 12:47 by 仲远

标签:

PHPExcel?PHP???????????????Microsoft Excel??????
?????????????PHP?????csv??????????????????PHP????Excel????MS Excel2007???????????????????????????????????????????????????
????PHPExcel???Excel?????????????PHPExcel??????Excel2007?????????????.xlsx????PHPExcel??Excel???????????????????????????????????????????????????PHPExcel????excel??????????????????????excel????????Excel2007??“?????????”?
????????????Excel?????????“Fatal error: Call to a member function setValue() on a...查看全文

2009-05-14

Fatal error: Class ‘ZipArchive’ not found的解决办法

Posted in PHP, FreeBSD/Unix服务器 at 16:32 by 仲远

标签:

??????????????’ZipArchive’ ???????????????????php???????php zip?????zlib??
?Windows????????
1??php.ini?????extension=php_zip.dll?????“;”????????php.ini????? zlib.output_compression = Off ?? zlib.output_compression = On ?
2???Apache????
?Unix/Linux???????
1??Linux???php_zip.dll?????????????????????????php?zip????????????
cd /usr/src
wget http://pecl.php.net/get/zip
tar -zxvf zip
cd zip-1.x.x
phpize
./configure查看全文

2008-12-24

Wordpress首页显示日志缩略图插件IFH的典型调用

Posted in PHP at 15:54 by 仲远

标签:

??????????Wordpress???????Image For Homepage???IFH???????????????Wordpress???????????Image For Homepage 1.0???????????????????IFH??????????
1????????
????????????????????plugins??????????????
2?????????
??????Wordpress?????index.php????the_excerpt()??the_content()???????????????’more…’??????the_content()???????????????????????????????????????????????????????????????????index.php?????the_content()??????the_excerpt()???
?????????the_excerpt()????...查看全文

2008-12-22

Wordpress首页显示日志缩略图的插件Image For Homepage发布1.3版

Posted in PHP at 15:11 by 仲远

标签:
Wordpress首页显示日志缩略图的插件Image For Homepage发布1.3版

??Image For Homepage??????????????????????1.0???????????????????????????????????????????????????????????????????????????????????????Image For Homepage 1.3????????idea-cool????????????????????

1.3?????????????????????????????????1.0????????????????? 
1?????????????????????????????????Wordpress??????????
???1.0??????????????Wordpress?????????????????????????Wordpress?????????????????????????????????http://localhost/blog/??????????????????????????????????????????????????????...查看全文

2008-12-14

仲子说隆重发布Wordpress首页文章缩略图显示插件Image For Homepage 1.0版

Posted in PHP at 1:54 by 仲远

标签:
仲子说隆重发布Wordpress首页文章缩略图显示插件Image For Homepage 1.0版

????Wordpress???????????????????????????????????????????????????????????????????????????HTML???????????????????????????????????????????????????????????????????
?????????????Wordpress???????????????????????????????????????????????????????“?????”?????????????????????????????????????????????????????????????????????????????????????????????????? ??????????????????????????????????????????????????????
??????????????????????????????????????????????Image For Homepage?IMF??Wordpress??...查看全文

2008-11-25

PHP中的随机数生成

Posted in PHP at 12:33 by 仲远

标签:

??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
?PHP??????????????????????
//???:?????
$seedarray =microtime();
$seedstr =split(" ",$seedarray,5);
$seed =$seedstr[0]*1000000;
 
//???:?????????????
srand($seed);
 
//???:???????????
$random =rand(0,1000);

?????????????????????...查看全文

2008-11-19

在Wordpress2.5版以上添加boxes组件的方法

Posted in PHP at 13:15 by 仲远

标签:

?Wordpress????????????Wordpress????????API?Hook???????????????????post-new.php????????box?????????“??”?“Trackback”??????????????????
add_action(’dbx_post_advanced’, ‘myplugin_old_custom_box’ );
???
add_action(’dbx_post_sidebar’, ‘myplugin_old_custom_box’ );
???????????myplugin_old_custom_box()??????????(dbx_post_advanced)???????????myplugin_old_custom_box()????????(sidebar)?(dbx_post_sidebar)?
????Wordpress...查看全文

2008-05-25

WordPress中修改默认摘要the_excerpt()的长度

Posted in PHP at 20:52 by 仲远

标签:

???????WordPress
?wp-includes?????formatting.php???????????

function wp_trim_excerpt($text) {
    global $post;
    if ( ” == $text ) {
        $text = get_the_content(”);
        $text = apply_filters(‘the_content‘, $text);
        $text = str_replace(‘]]>‘, ‘]]>‘, $text);
        $text = strip_tags($text);
        $excerpt_length =55;
        $wo...查看全文

2008-05-08

浅谈MySql下的查询优化:一个查询优化的简单例子

Posted in PHP at 20:24 by 仲远

标签:

PHP+Mysql???????????????????????????????????????Apache??????Perfect?????????PHP??Mysql????????PHP??????java???????????????????????????????????????????????Mysql????????????????????????mysql???????????????????????SQL????????????
????????test????????id???????????id???????????????????SQL???
SELECT *
FROM `test`
order by id asc
limit 208888,50
??SQL???????id??208888????????50???????30?????????????????????????????????????40?50??
???????SQL????????????????...查看全文

Pages (3): [1] 2 3 »