Archives

You are currently viewing archive for 01 May 2007
Category: Z. etc
Posted by: hajime osako
Crispy JavaScript Cookies: JavaScript Cookie Functions - Doc JavaScript
function setCookie(name, value, expires, path, domain, secure) {
   if(!expires)
   {
      expires = new Date();
      var yy = expires.getYear();
      if (yy < 2000) yy += 1900;
      expires.setYear(yy+1);
   }

   if(value.length <= 4000)
   {
      var curCookie = name + "=" + escape(value) +
         ((expires) ? "; expires=" + expires.toGMTString() : "") +
         ((path) ? "; path=" + path : "") +
         ((domain) ? "; domain=" + domain : "") +
         ((secure) ? "; secure" : "");

      document.cookie = curCookie;
   }
}
Category: Web dev
Posted by: hajime osako
【PHPウォッチ】第11回 PHP4/PHP5にバグ修正版,高機能デバッグ・ツールXdebug登場:ITpro

zend_extension_ts=C:\php5\ext\php_xdebug.dll
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_port=9000