08 2012 档案
摘要:转载自:http://www.phppan.com/2011/06/php-strtotime/在前面的文章 中, 我们提到strtotime函数在使用strtotime(”-1 month”)求上一个月的今天时会出一些状况,因此也引出写这篇文章,本文包括如下内容:strtotime函数的一些用法strtotime函数的实现基本原理strtotime(”-1 month”)求值失败的原因strtotime函数的一些用法1、strtotime(”JAN”)和strtotime(”January”)这两个用法的效果是一样的,都是返回指定月份的今天,如果指定月份没有今天,则顺延到下一个月。 如在20
        阅读全文
            
摘要:解释的很详细,分享一下。 1 <?php 2 /** 3 * author: selfimpr 4 * mail: lgg860911@yahoo.com.cn 5 * blog: http://blog.csdn.net/lgg201 6 * 下面提到的代码在PHP5.3以上版本运行通过. 7 */ 8 function callback($callback) { 9 $callback(); 10 } 11 //输出: This is a anonymous function.<br />/n 12 //这里是直接定义一个匿名函数进行传递, 在以往的版本...
        阅读全文
            
摘要:I did a minimal installation of FreeBSD a long time ago. At the time, I did not install manual pages. To later install these man pages, I should be able to do the following:Run sysinstall# sysinstallSelect ConfigureConfigure Do post-install configuration of FreeBSDSelect DistributionsDistributi...
        阅读全文
            
摘要:编译安装wget http://pecl.php.net/get/xhprof-0.9.2.tgztar zxf xhprof-0.9.2.tgzcd xhprof-0.9.2/extension/phpize ./configure --with-php-config=/usr/local/php/bin/php-configmakemake install配置 php.ini在php.ini里加入[xhprof]extension=xhprof.so;; directory used by default implementation of the iXHProfRuns; interfa
        阅读全文
            
摘要:jQuery UI很强大,其中的日期选择插件Datepicker是一个配置灵活的插件,我们可以自定义其展示方式,包括日期格式、语言、限制选择日期范围、添加相关按钮以及其它导航等。官方地址:http://docs.jquery.com/UI/Datepicker,官方示例: http://jqueryui.com/demos/datepicker/。一个不错的地址,用来DIY jQuery UI界面效果的站点http://jqueryui.com/themeroller/DatePicker基本使用方法: 1 <!DOCTYPE html> 2 <html> 3 <
        阅读全文
            
                    
                
浙公网安备 33010602011771号