Remote Login (SSH) - 22
Screen Sharing Service (VNC) - 5900
AddressBook Service - 8800, 8843
iChat Service - 5222, 5223, 5060, 5269, 7777
Mail Service (SMTP, IMAP, POP) - 25, 110, 143, 587, 993, 995
Web Service - 80, 443
VPN Service (L2TP) - 500, 1701, 4500
VPN Service (PPTP) - 1723
File Sharing Service (AFP, SMB) - 548, 139
參考URL
http://support.apple.com/kb/TS2963
2010年9月26日 星期日
2010年9月16日 星期四
Setting Debugging PHP with Xdebug
1. download xdebug
2. copy xdebug's dll to php\ext\ (ex. C:\Program Files\PHP\ext)
3. modify php.ini add xdebug define (if xdebug's dll name is php_xdebug-2.0.5-5.2.dll)
zend_extension_ts="C:\Program Files\PHP\ext\php_xdebug-2.0.5-5.2.dll"
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_mode=req
xdebug.idekey=default
xdebug.remote_log="c:\tmp\xdebug\xdebug.log"
xdebug.show_exception_trace=0
xdebug.show_local_vars=9
xdebug.show_mem_delta=0
xdebug.trace_format=0
xdebug.profiler_enable = 1
xdebug.profiler_output_dir ="c:\tmp\xdebug"
4. Make sure you create the folder c:\tmp\xdebug\
5. restart apache
6. look phpinfo()
Reference URL : http://www.webcheatsheet.com/php/debug_php_with_xdebug.php
2. copy xdebug's dll to php\ext\ (ex. C:\Program Files\PHP\ext)
3. modify php.ini add xdebug define (if xdebug's dll name is php_xdebug-2.0.5-5.2.dll)
zend_extension_ts="C:\Program Files\PHP\ext\php_xdebug-2.0.5-5.2.dll"
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_mode=req
xdebug.idekey=default
xdebug.remote_log="c:\tmp\xdebug\xdebug.log"
xdebug.show_exception_trace=0
xdebug.show_local_vars=9
xdebug.show_mem_delta=0
xdebug.trace_format=0
xdebug.profiler_enable = 1
xdebug.profiler_output_dir ="c:\tmp\xdebug"
4. Make sure you create the folder c:\tmp\xdebug\
5. restart apache
6. look phpinfo()
Reference URL : http://www.webcheatsheet.com/php/debug_php_with_xdebug.php
2010年9月4日 星期六
設定Input只能輸入數值
在Script Tag之中加入限制的方法
<Script>
...
$(function()
{
$('#InputID').bind('keypress', filterWithOutNumber)
});
//限制只能輸入數值的方法
function filterWithOutNumber(e)
{
if(e.which!=8 && e.which!=0 && (e.which<48 || e.which>57))
return false;
else
return true;
if(e.which!=8 && e.which!=0 && (e.which<48 || e.which>57))
return false;
else
return true;
}
...
</Script>
<body>
<Input type="text" id="InputID"></Input>
</body>
訂閱:
文章 (Atom)