Archive for 十月, 2011

六个好用的MySQL的SQL语句

1. 计算年数

你想通过生日来计算这个人有几岁了。

SELECTDATE_FORMAT(FROM_DAYS(TO_DAYS(now())-TO_DAYS(@dateofbirth)),’%Y’)+0; (continue reading…)

unzip on MAC

Source

Min source.

(continue reading…)

1 Comment more...

New mail API for the core

TYPO3 4.5 comes with the Swift Mailer library as the new mail API. It’s quite easy to use it in extensions. (continue reading…)


htaccess redirect only for MSIE 5 and 6 and winxp

RewriteEngine on
#
# Redirect IE 5 and IE 6 requests to version-specific subdomains
RewriteCond %{HTTP_USER_AGENT} MSIE\ ([56])\. [OR]
RewriteCond %{HTTP_USER_AGENT} Windows\ NT\ 5\.1
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=302,L]


.htaccess RewriteRule详解

1、Rewrite规则简介:

Rewirte 主要的功能就是实现URL的跳转,它的正则表达式是基于Perl语言。可基于服务器级的(httpd.conf)和目录级的(.htaccess)两种方 式。如果要想用到rewrite模块,必须先安装或加载rewrite模块。方法有两种一种是编译apache的时候就直接安装rewrite模块,别一 种是编译apache时以DSO模式安装apache,然后再利用源码和apxs来安装rewrite模块。 (continue reading…)


Apache SSL in htaccess examples

Apache SSL examples in htaccess files

Any htaccess rewrite examples should always begin with

Options +FollowSymLinks
RewriteEngine On
RewriteBase /

Fixing double-login problem and making sure authorization usernames/passwords are not sent in cleartext unencrypted. (continue reading…)


Htaccess文件用法集锦

1.时区设置

有些时候,当你在PHP里使用date或mktime函数时,由于时区的不同,它会显示出一些很奇怪的信息。下面是解决这个问题的方法之一。就是设置你的服务器的时区。你可以在这里找到所有支持的时区的清单。 (continue reading…)


JQuery trim()用法

$.each(ob,function(k,val){
       if(k=='cname'){
                    var s = $.trim(ob.cname);
                     $("#nianji").append("<option value='"+s+"'>"+s+"</option>");
       }
  });

这个是全都支持的. $.trim()

1个IPn个域名n个证书

mod_gnutls使用GnuTLS库提供给Apache SSL 3.0和TLS1.x的协议。除了标准的X.509证书认证,它提供了支持SRP和OpenPGP金钥验证密码的身份验证. (continue reading…)


ipad播放视频流

As of the release of Wowza Media Server 2, iphone/ipod/ipad streaming is now available. However, not all streaming servers have been upgraded to Wowza Media Server 2 yet. (continue reading…)


Copyright © 1996-2010 Add Lives. All rights reserved.
iDream theme by Templates Next | Powered by WordPress