subclipse - http://subclipse.tigris.org/update
posted @ 2010-12-02 09:39 董銳 閱讀(295) | 評(píng)論 (0) | 編輯 收藏
spket - http://www.spket.com/update
subclipse - http://subclipse.tigris.org/update posted @ 2010-12-02 09:39 董銳 閱讀(295) | 評(píng)論 (0) | 編輯 收藏 Tomcat啟動(dòng)時(shí)classloader加載順序 posted @ 2010-11-03 11:31 董銳 閱讀(1014) | 評(píng)論 (0) | 編輯 收藏 What this means is that leadership involves setting direction, communicating that vision passionately to those they work with, and helping the people they lead understand and commit to that vision. Managers, on the other hand, are responsible for ensuring that the vision is implemented efficiently and successfully. posted @ 2010-08-23 16:29 董銳 閱讀(450) | 評(píng)論 (0) | 編輯 收藏
I know how to send by jquery post method $.post("test.php", { name: "John", time: "2pm" } ); but what if my form field name is array
how to send these 2 field value send to url by jquery post method?
You can pass in an array as a value in the object:
(This is documented at ajax but also works for post.)
posted @ 2010-07-14 11:46 董銳 閱讀(741) | 評(píng)論 (0) | 編輯 收藏 string.replace(new RegExp(oldString,"gm"),newString)) posted @ 2010-07-14 11:20 董銳 閱讀(209) | 評(píng)論 (0) | 編輯 收藏 在網(wǎng)上看到解決方案是把注冊(cè)表里(因?yàn)槭莣indows操作系統(tǒng))\HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE 下的NLS_lang 的NA值修改為SIMPLIFIED CHINESE_CHINA.ZHS16GBK; posted @ 2010-01-14 14:45 董銳 閱讀(13497) | 評(píng)論 (2) | 編輯 收藏 If you got this message: "Warning: Cannot modify header information - headers already sent by ...." Few notes based on the following user posts: 1. Blank lines (空白行):
2. Use exit statement (用exit來解決):
3. PHP has this annoying problem, if your HTML goes before any PHP code or any header modification before redirecting to certain page, it'll said "Warning: Cannot modify header information - headers already sent by ...." Basically anytime you output to browser, the header is set and cannot be modified. So two ways to get around the problem: 3a. Use Javascript (用Javascript來解決): 3b. Use output buffering (用輸出緩存來解決): 就像上面的代碼那樣,這種方法在生成頁面的時(shí)候緩存,這樣就允許在輸出head之后再輸出header了。 posted @ 2009-12-02 10:02 董銳 閱讀(7401) | 評(píng)論 (1) | 編輯 收藏 1、要安裝java jdk,安裝tomcat
2、安裝好apache,php 3、下載php-java-bridge_5.5.4_documentation.zip 4、解壓縮php-java-bridge_5.5.4_documentation.zip 5、將解壓縮后根目錄下JavaBridge.war拷貝到tomcat服務(wù)器的webapp目錄下 6、啟動(dòng)tomcat服務(wù)器 7、在php中使用java只需增加下面一行語句: <php? require_once(http://127.0.0.1:8080/JavaBridge/java/Java.inc); ?> 可以了: <php? $date=new Java('java.util.Date'); echo $date->getDate(); ?> 運(yùn)行通過,OK! posted @ 2009-10-20 15:03 董銳 閱讀(587) | 評(píng)論 (2) | 編輯 收藏 80端口被占用的解決方法:
cmd命令窗口 輸入netstat -abn ->c:/port80.txt 然后到c盤port80.txt文件中找到占用80端口的程序pid,記下pid。打開任務(wù)管理器,點(diǎn)擊“查看”/選擇列,勾選“PID(進(jìn)程標(biāo)識(shí)符)”,然后單擊“進(jìn)程”標(biāo)簽,找到80端口對(duì)應(yīng)的pid,就可以看到是那個(gè)程序占用的了,更改這個(gè)程序的port,再重啟這個(gè)程序,使更改生效。 不管是Apache還是IIS都無法使用已被占用的端口。即每個(gè)端口只允許使用一次(一般指被一個(gè)服務(wù)程序所使用)。 如果系統(tǒng)內(nèi)已安裝IIS并使用了80端口(Http默認(rèn)端口),再安裝Apache,只要另選一個(gè)端口并不與其他應(yīng)用沖突即可運(yùn)行。例如可以將Apache監(jiān)聽的端口改為81或其他任何一個(gè)未被使用的端口。 Apache修改監(jiān)聽端口的方法為: 打開 httpd.conf 修改 Listen 80 為 Listen 81 Apache可以同時(shí)監(jiān)聽一個(gè)以上的端口實(shí)現(xiàn)多個(gè)Http服務(wù) 只要添一行 如 Listen 82 即可 posted @ 2009-09-24 14:18 董銳 閱讀(1220) | 評(píng)論 (0) | 編輯 收藏 "^\d+$" //非負(fù)整數(shù)(正整數(shù) + 0)
"^[0-9]*[1-9][0-9]*$" //正整數(shù) "^((-\d+)|(0+))$" //非正整數(shù)(負(fù)整數(shù) + 0) "^-[0-9]*[1-9][0-9]*$" //負(fù)整數(shù) "^-?\d+$" //整數(shù) "^\d+(\.\d+)?$" //非負(fù)浮點(diǎn)數(shù)(正浮點(diǎn)數(shù) + 0) "^(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*))$" //正浮點(diǎn)數(shù) "^((-\d+(\.\d+)?)|(0+(\.0+)?))$" //非正浮點(diǎn)數(shù)(負(fù)浮點(diǎn)數(shù) + 0) "^(-(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*)))$" //負(fù)浮點(diǎn)數(shù) "^(-?\d+)(\.\d+)?$" //浮點(diǎn)數(shù) "^[A-Za-z]+$" //由26個(gè)英文字母組成的字符串 "^[A-Z]+$" //由26個(gè)英文字母的大寫組成的字符串 "^[a-z]+$" //由26個(gè)英文字母的小寫組成的字符串 "^[A-Za-z0-9]+$" //由數(shù)字和26個(gè)英文字母組成的字符串 "^\w+$" //由數(shù)字、26個(gè)英文字母或者下劃線組成的字符串 //開源代碼OSPhP.COm.CN "^[\w-]+(\.[\w-]+)*@[\w-]+(\.[\w-]+)+$" //email地址 "^[a-zA-z]+://(\w+(-\w+)*)(\.(\w+(-\w+)*))*(\?\S*)?$" //url /^(d{2}|d{4})-((0([1-9]{1}))|(1[1|2]))-(([0-2]([1-9]{1}))|(3[0|1]))$/ // 年-月-日 /^((0([1-9]{1}))|(1[1|2]))/(([0-2]([1-9]{1}))|(3[0|1]))/(d{2}|d{4})$/ // 月/日/年 "^([w-.]+)@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.)|(([w-]+.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(]?)$" //Emil /^((\+?[0-9]{2,4}\-[0-9]{3,4}\-)|([0-9]{3,4}\-))?([0-9]{7,8})(\-[0-9]+)?$/ //電話號(hào)碼 "^(d{1,2}|1dd|2[0-4]d|25[0-5]).(d{1,2}|1dd|2[0-4]d|25[0-5]).(d{1,2}|1dd|2[0-4]d|25[0-5]).(d{1,2}|1dd|2[0-4]d|25[0-5])$" //IP地址 //開源OSPhP.COM.CN
posted @ 2009-09-23 17:58 董銳 閱讀(216) | 評(píng)論 (0) | 編輯 收藏 |
||