锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产精品亚洲精品日韩已方,国产精品亚洲二区在线,亚洲午夜AV无码专区在线播放http://www.tkk7.com/rorely/category/40509.html瀛︿範瓚寵抗zh-cnFri, 11 Dec 2009 23:59:55 GMTFri, 11 Dec 2009 23:59:55 GMT60杞細php鐜閰嶇疆http://www.tkk7.com/rorely/archive/2009/12/11/305619.html鏈熷緟鏄庡ぉ鏈熷緟鏄庡ぉFri, 11 Dec 2009 10:10:00 GMThttp://www.tkk7.com/rorely/archive/2009/12/11/305619.htmlhttp://www.tkk7.com/rorely/comments/305619.htmlhttp://www.tkk7.com/rorely/archive/2009/12/11/305619.html#Feedback0http://www.tkk7.com/rorely/comments/commentRss/305619.htmlhttp://www.tkk7.com/rorely/services/trackbacks/305619.htmlphp鐜閰嶇疆 php5 MySQL5 apache2 phpmyadmin ZendOptimizer瀹夎涓庨厤緗?/h2>
php鐜鐨勯厤緗?瀵逛簬鏂版墜鏉ヨ,緇濆鏄竴浠剁儲浜?鎬諱細閬囧埌榪欐牱閭f牱鐨勯棶棰?璧板緢澶氬集璺?
鎵浠ョ壒鎰忓啓浜嗚繖涓厤緗枃妗?鐩鎬俊鎸夌収浠ヤ笅姝ラ浣犱竴瀹氫細鎴愬姛鐨?閿欒鐨勫湴鏂逛篃甯屾湜鍚勪綅鎸囨.
鏇村鏂囩珷 php鐖卞ソ鑰呯珯 http://www.phpfans.net

鏈緥鏄湪wiondws XP涓?
php5.2.1(zip)  
apache2.2.4  
MySQL5.0.37  
phpmyadmin2.10.0.2
ZendOptimizer-3.2.6
鐨勫畨瑁呬笌閰嶇疆
浠ヤ笂璧勬簮鐩存帴鐐瑰嚮涓嬭澆.涔熷彲浠ュ湪鏈珯涓嬭澆绔?a target="_blank">http://www.phpfans.net/download.php涓嬭澆

/*********************************************
*
* 浣?鑰? 鎴戜笉鏄奔
* php鐖卞ソ鑰呯珯: http://www.phpfans.net
* Email: deng5765@163.com
* 鍗?瀹?  http://www.phpfans.net/space/?2
*
*********************************************/

Apache 鐨勫畨瑁?/font>

1 鐐瑰嚮apahce瀹夎鍖?br />

2 鎺ュ彈鍗忚


3 涓嬮潰3欏歸殢渚垮~鍗沖彲
    apache 鐩戝惉80 绔彛.濡傛灉iis鐢ㄤ簡80绔彛,淇敼iis绔彛鎴栬卆pache绔彛,浠ュ厤鍐茬獊


4 榪欓噷榛樿鐨勬槸 typical,鐐瑰嚮next.


5 榪欓噷鍙敤淇敼瀹夎璺緞,娉ㄦ剰瀹夎璺緞涓嶈兘鍚腑鏂?


6 鐐瑰嚮install寮濮嬪畨瑁?br />

7 瀹夎瀹屾垚鍚庡湪嫻忚鍣ㄩ噷鎵撳叆  http://localhost 鎴栬?http://127.0.0.1
濡傛灉鍙互鐪嬪埌榪欎釜欏甸潰,璇佹槑apache瀹夎鎴愬姛,宸茬粡鍙互瑙i噴闈欐侀〉闈簡


MySQL 鐨勫畨瑁?/font>

1 鐐瑰嚮MySQL瀹夎鍖?br />

2 榛樿鏄疶ypical,濡傛灉鎯充慨鏀瑰畨瑁呰礬寰勭殑璇濅篃鍙互閫夋嫨custom.
娉ㄦ剰:瀹夎mysql鐨勮礬寰勪腑,涓嶈兘鍚湁涓枃!


3 鐐瑰嚮intall寮濮嬪畨瑁?br />

4 璺寵繃娉ㄥ唽


5 鏄惁鐜板湪灝遍厤緗?MySQL.涔熷彲浠ヤ箣鍚庡湪寮濮嬭彍鍗曠殑configuration wizard 榪涜閰嶇疆.
  榪欓噷鏄幇鍦ㄨ繘琛岄厤緗?br />

6 閫夋嫨Detailed Configuration(璇︾粏璁劇疆),鐐筃ext緇х畫


7 涓嬮潰榪欎釜閫夐」鏄夋嫨mysql搴旂敤浜庝綍縐嶇被鍨?絎竴縐嶆槸寮鍙戞湇鍔″櫒,
灝嗗彧鐢ㄥ敖閲忓皯鐨勫唴瀛?絎簩縐嶆槸鏅歐EB鏈嶅姟鍣?灝嗕嬌鐢ㄤ腑絳夋暟閲忓唴瀛?
鏈鍚庝竴縐嶆槸榪欏彴鏈嶅姟鍣ㄤ笂闈㈠彧榪愯MySQL鏁版嵁搴?灝嗗崰鐢ㄥ叏閮ㄧ殑鍐呭瓨.
鐢ㄦ埛鍙牴鎹嚜宸辯殑闇姹?閫夋嫨閫夐」.榪欓噷鍙夋嫨寮鍙戞湇鍔″櫒,鐐筃ext緇х畫


8 涓嬮潰鏄夋嫨鏁版嵁搴撶敤閫?絎竴縐嶆槸澶氬姛鑳界敤閫?
灝嗘妸鏁版嵁搴撲紭鍖栨垚寰堝ソ鐨刬nnodb(浜嬪姟)瀛樺偍綾誨瀷鍜岄珮鏁堢巼鐨刴yisam(闈炰簨鍔?瀛樺偍綾誨瀷,
絎簩縐嶆槸鍙敤浜庝簨鍔″鐞嗙被鍨?鏈濂界殑浼樺寲innodb,浣嗗悓鏃朵篃鏀寔myisam,鍙湁myisam鎵嶆敮鎸佸叏鏂囩儲寮?br /> 鏈鍚庝竴縐嶆槸綆鍗曠殑緗戠粶寮鍙?閫傚悎浜庣畝鍗曠殑搴旂敤,鍙湁涓嶆敮鎸佷簨鍔$殑myisam綾誨瀷鏄鏀寔鐨?
涓鑸夋嫨絎竴縐嶅鍔熻兘鐨?


9 涓嬮潰鏄夋嫨InnodDB鐨勬暟鎹瓨鏀句綅緗?涓鑸粯璁ゅソ浜?涓嶉渶瑕佹敼鍔?br />    (濡傛灉瑕佷慨鏀規暟鎹繚瀛樿礬寰?涔熷彲鐢ㄥ湪瀹夎鍚庝慨鏀筸y.ini鐨刣atadir鐨勫?


10 涓嬮潰鏄夋嫨MySQL鍏佽鐨勬渶澶ц繛鎺ユ暟,絎竴縐嶆槸鏈澶?0涓繛鎺ュ茍鍙戞暟,
絎簩縐嶆槸鏈澶?00涓茍鍙戣繛鎺ユ暟,鏈鍚?涓縐嶆槸鑷畾涔?浣犲彲浠ユ牴鎹嚜宸辯殑闇瑕侀夋嫨.
榪欓噷閫夋嫨絎竴涓?br />

11 涓嬮潰鏄槸鍚﹁繍琛岀綉緇滈摼鎺?榪欓噷閫夋嫨澶嶉夋.鏁版嵁搴撶洃鍚殑绔彛,涓鑸粯璁ゆ槸3306,
濡傛灉鏀規垚鍏朵粬绔彛,浠ュ悗榪炴帴鏁版嵁搴撶殑鏃跺欓兘瑕佽浣忎慨鏀圭殑绔彛,鍚﹀垯涓嶈兘榪炴帴mysql鏁版嵁搴?
姣旇緝楹葷儲,榪欓噷涓嶅仛淇敼,鐢╩ysq鐨勯粯璁ょ鍙o細3306


12 榪欎竴姝ヨ緗甿ysql鐨勯粯璁ょ紪鐮?榛樿鏄痩atin1,涔熸槸鏍囧噯鐨勭紪鐮?絎簩縐嶆槸UTF8,絎笁縐嶆槸鎵嬪姩璁劇疆.
緙栫爜鏄増鏈?.1浠ヤ笂寮曞叆鐨?濡傛灉瑕佺敤鍘熸潵鏁版嵁搴撶殑鏁版嵁,鏈濂借兘紜畾鍘熸潵鏁版嵁搴撶敤鐨勬槸浠涔堢紪鐮?濡傛灉榪欓噷璁劇疆鐨勭紪鐮?br /> 鍜屽師鏉ユ暟鎹簱鏁版嵁鐨勭紪鐮佷笉涓鑷?鍦ㄤ嬌鐢ㄧ殑鏃跺欏彲鑳戒細鍑虹幇涔辯爜.寤鴻浣跨敤latin1鏍囧噯緙栫爜


褰撶劧鎴戜滑鏈夐渶瑕佺殑璇?涔熷彲浠ヤ慨鏀瑰畠鐨勭紪鐮?涓嶅緩璁?.


13 榪欎竴姝ユ槸鏄惁瑕佹妸mysql璁劇疆鎴恮indows鐨勬湇鍔?涓鑸夋嫨璁炬垚鏈嶅姟,
榪欐牱浠ュ悗灝卞彲浠ラ氳繃鏈嶅姟涓惎鍔ㄥ拰鍏抽棴mysql鏁版嵁搴撲簡.鎺ㄨ崘錛氫笅闈㈢殑澶嶉夋涔熷嬀閫変笂,
榪欐牱,鍦╟md妯″紡涓?涓嶅繀闈炲埌mysql鐨刡in鐩綍涓嬫墽琛屽懡浠?鍦ㄥ懡浠よ涓嬪挩璇㈠彲浠ユ墽琛屾枃浠?br />

14 榪欎竴姝ユ槸璁劇疆mysql鐨勮秴綰х敤鎴峰瘑鐮?榪欎釜瓚呯駭鐢ㄦ埛闈炲父閲嶈,
瀵筸ysql鎷ユ湁鍏ㄩ儴鐨勬潈闄?璇瘋緗ソ騫剁墷璁拌秴綰х敤鎴風殑瀵嗙爜,
涓嬮潰鏈変釜澶嶉夋鏄〃紺哄垱寤轟竴涓尶鍚嶈處鍙?榪欎細浣挎暟鎹簱緋葷粺涓嶅畨鍏?
濡傛灉鏈夎繖涓渶姹?涔熻鍕鵑?


15 鐐瑰嚮 Execute榪涜瀹夎


16 鐐瑰嚮finish瀹屾垚瀹夎


17 鎴戜滑鍙互寮濮嬩嬌鐢╩ysql浜?鎵撳紑 寮濮嬭彍鍗?鎵鏈夌▼搴忕殑 mysql Command line Client,杈撳叆瀵嗙爜
鍑虹幇榪欎釜鐣岄潰璇存槑mysql宸茬粡瀹夎濂戒簡


鍙兘鍑虹幇鐨勯棶棰橈細

濡傛灉鍦ㄧ15姝?鍑虹幇涓嬪浘鎻愮ず

鏄洜涓轟綘涔嬪墠瑁呰繃mysql.鍗歌澆鏃惰繕淇濈暀浜嗕竴浜涢厤緗枃浠?

鐐瑰嚮retry鐪嬬湅鏄惁鍙互閫氳繃銆傚惁鍒欑偣鍑?cancel 閫鍑?鐒跺悗鐐瑰嚮寮濮嬭彍鍗曠殑 MySQL Server Instance Config Wizard
閲嶆柊閰嶇疆 mysql

閲嶅涔嬪墠鐨勬搷浣?絎?4姝ュ皢浼氬嚭鐜扮晫闈㈡槸鍍忎笅闈㈣繖鏍?br />
鏈変笁涓緭鍏ュ瘑鐮佺殑鍦版柟,浣犲師鏉ヨ榪噈ysql.
浣犲湪絎竴涓枃鏈杈撳叆鍘熸潵root鐨勫瘑鐮?鍚庨潰涓や釜鏂囨湰妗嗚緭鍏oot鐨勬柊瀵嗙爜灝卞彲浠ヤ簡

濡傛灉榪樻槸涓嶈閭e氨閲嶈涓嬈ySQL銆?br /> 閲嶈娉ㄦ剰浜嬮」錛氭渶濂藉垹闄ゅ師鏉ョ殑鎵鏈夋枃浠?蹇呰鐨勮瘽,鍙互娓呬竴涓嬫敞鍐岃〃,
濡傛灉浣犳満鍣ㄤ笂娌℃湁鍏跺畠mysql鐩稿叧鐨勭▼搴?鑰屼笖涓瀹氳寰椾笉瑕佷繚鐣欏師鏈夌殑my.ini鏂囦歡.
榪樻湁灝辨槸鍒犻櫎鍘熸潵瀹夎璺緞涓嬬殑鏂囦歡,騫跺垹闄ゆ暟鎹洰褰曚笅闈㈢殑ibdata1鏂囦歡.

鏇村鏂囩珷 php鐖卞ソ鑰呯珯 http://www.phpfans.net

PHP 鐨勫畨瑁?/font>

鐢變簬php鏄竴涓獄ip鏂囦歡(闈瀒nstall鐗?,瀹夎杈冧負綆鍗?br /> 瑙e帇灝辮.鎶婅В鍘嬬殑 php-5.2.1-Win32 閲嶅懡鍚嶄負 php5.騫跺鍒跺埌C鐩樼洰褰曚笅.鍗沖畨瑁呰礬寰勪負 c:\php5

1  鎵懼埌php鐩綍涓嬬殑 php.ini.recommended (鎴栬卲hp.ini-dist)鏂囦歡,閲嶅懡鍚嶄負 php.ini
騫跺鍒跺埌緋葷粺鐩樼殑windows鐩綍涓?浠:\windows涓轟緥).

2  鍐嶆妸php鐩綍涓嬬殑php5ts.dll,libmysql.dll澶嶅埗鍒扮洰褰?c:\windows\system32涓?

3  鎶妏hp5\ext鐩綍涓嬬殑php_gd2.dll,php_mysql.dll,php_mbstring.dll鏂囦歡澶嶅埗鍒癱:\windows\system32涓?
娉ㄦ剰:涓嶈鎶?php_mysql.dll 鍜?php_mssql.dll 娣鋒穯
濡傛灉娌℃湁鍔犺澆 php_gd2.dll  php灝嗕笉鑳藉鐞嗗浘鍍?娌℃湁鍔犺澆php_mysql.dll php灝嗕笉鏀寔mysql鍑芥暟搴?br /> php_mbstring.dll鍦ㄥ悗闈嬌鐢╬hpmyadmin鏃舵敮鎸佸瀛楃
鏇村鏂囩珷 php鐖卞ソ鑰呯珯 http://www.phpfans.net

ZendOptimizer 鐨勫畨瑁?/font>

Zend Optimizer鐢ㄤ紭鍖栦唬鐮佺殑鏂規硶鏉ユ彁楂楶HP搴旂敤紼嬪簭鐨勬墽琛岄熷害銆傛墽琛屼嬌鐢╖end Optimizer鐨凱HP紼嬪簭姣斾笉浣跨敤鐨勮蹇?0%鍒?00%銆傝屼笖涓浜涚敤Zend SafeGuard 鍔犲瘑榪囩殑鏂囦歡,蹇呴』瑁呬簡Zend Optimizer鎵嶅彲浠ヨ繍琛?
娉ㄦ剰錛歓end Optimizer 鐨勫畨瑁呬笌鍚﹀茍涓嶅獎鍝峱hp姝e父榪愯錛屽鏋滀綘瑙夊緱楹葷儲錛岃繖姝ュ彲浠ョ渷鍘匯?/font>

1 鐐瑰嚮瀹夎Zend Optimizer


2 鎺ュ彈鍗忚,鐐瑰嚮next


3 閫夊畾瀹夎璺緞


4 閫夊畾apache鏈増,鎴戜滑鐢ㄧ殑鏄痑pache2.2.4,鎵浠ヨ繖閲岄?apache2.x


5 閫夊畾 php.ini 鐨勪綅緗?鎴戜滑鐨勬槸鍦?C:\WINDOWS\ 涓?br />

6 閫夊畾apache瀹夎璺緞.鎴戜滑鐨勬槸C:\Program Files\Apache Software Foundation\Apache2.2 .鎵浠ヨ淇敼榪囨潵


7 鐐瑰嚮install榪涜瀹夎


8 鐐瑰嚮 鏄?瀹夎紼嬪簭鑷姩瀹屾垚閰嶇疆鍜屾湇鍔″櫒閲嶅惎.


9 鐐瑰嚮 Finish 瀹屾垚瀹夎


鎵鏈変笢瑗垮畨瑁呭畬鎴愬悗鎴戜滑鍐嶈繘琛岄厤緗?

閰嶇疆php騫跺叧鑱擬ySQL

鎵撳紑c:\windows\php.ini鏂囦歡

鏈笘闅愯棌鐨勫唴瀹歸渶瑕佸洖澶嶆墠鍙互嫻忚


瀹夎 phpMyAdmin

涓嬭澆寰楀埌 phpMyAdmin-2.10.0.2-all-languages.zip,灝嗗叾瑙e帇鍒?浣犵綉绔欐牴鐩綍涓嬪茍閲嶅懡鍚嶄負phpMyAdmin,
鎵懼埌騫舵墦寮 libraries/config.default.php (鏈変簺鐗堟湰鏄綋鍓嶇洰褰曠殑 config.inc.php鎴栬?config.defaut.php)
鍋氫互涓嬩慨鏀癸細

1 鏌ユ壘 password 鏈夊涓嬩袱琛?br /> $cfg['Servers'][$i]['user']          = 'root';     
$cfg['Servers'][$i]['password']      = '';

鎶婁綘鐨刴ysql瀵嗙爜濉埌$cfg['Servers'][$i]['password']      = ''; 鍗曞紩鍙烽噷杈?

2 鎼滅儲 $cfg['PmaAbsoluteUri'],灝嗗叾鍚庨潰鍗曞紩鍙烽噷鐨勫艱緗負 phpMyAdmin 鐩綍璺緞,濡傦細http://localhost/phpMyAdmin/ 錛?

3 鎼滅儲 $cfg['DefaultLang'],灝嗗叾鍚庨潰鍗曞紩鍙烽噷鐨勫艱緗負 zh-gb2312 ;

涓嬮潰榪欓」鏍規嵁鑷繁闇瑕佺殑緙栫爜淇敼(濡傛灉瀵規暟鎹簱緙栫爜涓嶆槸寰堢啛鎮夌殑寤鴻涓嶈淇敼)
4 鎼滅儲 $cfg['DefaultCharset'],灝嗗叾璁劇疆涓?鑷繁鎵瑕佺殑緙栫爜.

鎵撳紑嫻忚鍣?杈撳叆錛?a href="http://localhost/phpMyAdmin/" target="_blank">http://localhost/phpMyAdmin/,Apache 鍜?MySQL 鍧囧凡鍚姩,
濡傛灉鍑虹幇濡備笅欏甸潰鍒檖hpmyadmin瀹夎瀹屾垚騫跺彲浠ヤ嬌鐢ㄤ簡


phpMyAdmin 鐨勫叿浣撳姛鑳?璇鋒參鎱㈢啛鎮?榪欓噷涓嶅啀璧樿堪.

鏇村鏂囩珷 php鐖卞ソ鑰呯珯 http://www.phpfans.net

緇堜簬瀹屼簡,甯屾湜瀵瑰ぇ瀹舵湁鐢?璋㈣阿.

[ 鏈笘鏈鍚庣敱 鎴戜笉鏄奔 浜?2007-12-5 00:09 緙栬緫 ]


]]>
php ODBC 紺轟緥http://www.tkk7.com/rorely/archive/2009/07/03/285302.html鏈熷緟鏄庡ぉ鏈熷緟鏄庡ぉFri, 03 Jul 2009 02:50:00 GMThttp://www.tkk7.com/rorely/archive/2009/07/03/285302.htmlhttp://www.tkk7.com/rorely/comments/285302.htmlhttp://www.tkk7.com/rorely/archive/2009/07/03/285302.html#Feedback0http://www.tkk7.com/rorely/comments/commentRss/285302.htmlhttp://www.tkk7.com/rorely/services/trackbacks/285302.html     <body>
        <?php
        $conn=odbc_connect('ktv','','');
        if (!$conn){
            exit("Connection Failed: " . $conn);
        }
        $sql="SELECT * FROM tb_authorinfo";
        $rs=odbc_exec($conn,$sql);
        if (!$rs){
            exit("Error in SQL");
        }
        echo "<table><tr>";
        echo "<th>ID</th><th>Name</th><th>Sex</th><th>Birthday</th><th>Genre</th><th>Company</th><th>Recma</th><th>zjm</th><th>DateTime</th>";
        echo "</tr>";
        while (odbc_fetch_row($rs)){
          $id=odbc_result($rs,"authorId");
          $name=odbc_result($rs,"authorName");
          $sex=odbc_result($rs,"authorSex");
          $birthday=odbc_result($rs,"authorbirthday");
          $genre=odbc_result($rs,"authorGenre");
          $company=odbc_result($rs,"authorcompany");
          $recma=odbc_result($rs,"authorRecma");
          $zjm=odbc_result($rs,"authorzjm");
          $datetime=odbc_result($rs,"RdateTime");
          echo "<tr><td>$id</td><td>$name</td><td>$sex</td><td>$birthday</td><td>$genre</td><td>$company</td><td>$recma</td><td>$zjm</td><td>$datetime</td>";
          echo "</tr>";
        }
        odbc_close($conn);
        echo "</table>";
        ?>
    </body>
</html>

緇撴灉濡備笅錛?br />
IDNameSexBirthdayGenreCompanyRecmazjmDateTime
AU-4122007110244 寮?/td> 鐢?/td> 2007-12-04 11:11:33 澶ч檰 姝︽墦
Z 2007-12-04 11:47:45
AU-10122007115114 灝忔槦 鐢?/td> 1789-12-10 11:51:14 嫻峰 鍠滃墽 鏃?/td> XX 2007-12-10 11:51:50
AU-10122007131630 灝忔潕 濂?/td> 2007-12-10 13:16:30 澶ч檰 緇忓吀 鏃?/td> XL 2007-12-10 13:16:44




]]>
php ODBC鏁版嵁婧?/title><link>http://www.tkk7.com/rorely/archive/2009/07/03/285288.html</link><dc:creator>鏈熷緟鏄庡ぉ</dc:creator><author>鏈熷緟鏄庡ぉ</author><pubDate>Fri, 03 Jul 2009 02:02:00 GMT</pubDate><guid>http://www.tkk7.com/rorely/archive/2009/07/03/285288.html</guid><wfw:comment>http://www.tkk7.com/rorely/comments/285288.html</wfw:comment><comments>http://www.tkk7.com/rorely/archive/2009/07/03/285288.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/rorely/comments/commentRss/285288.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/rorely/services/trackbacks/285288.html</trackback:ping><description><![CDATA[ODBC 鎸囩殑鏄紙Application Programming Interface錛孉PI錛夛紝浣挎垜浠湁鑳藉姏榪炴帴鍒版煇涓暟鎹簮錛堟瘮濡備竴涓?MS Access 鏁版嵁搴擄級銆?br /> <br /> 鍒涘緩 ODBC 榪炴帴<br /> 閫氳繃涓涓?ODBC 榪炴帴錛屾偍鍙互榪炴帴鍒版偍鐨勭綉緇滀腑鐨勪換浣曡綆楁満涓婄殑浠諱綍鏁版嵁搴擄紝鍙 ODBC 榪炴帴鏄彲鐢ㄧ殑銆?br /> <br /> 榪欐槸鍒涘緩鍒拌揪 MS Access 鏁版嵁鐨?ODBC 榪炴帴鐨勬柟娉曪細<br /> <br />    1. 鍦ㄦ帶鍒墮潰鏉夸腑鎵撳紑綆$悊宸ュ叿<br />    2. 鍙屽嚮鍏朵腑鐨勬暟鎹簮 (ODBC) 鍥炬爣<br />    3. 閫夋嫨緋葷粺 DSN 閫夐」鍗?br />    4. 鐐瑰嚮緋葷粺 DSN 閫夐」鍗′腑鐨?#8220;娣誨姞”鎸夐挳<br />    5. 閫夋嫨 Microsoft Access Driver銆傜偣鍑誨畬鎴愩?br />    6. 鍦ㄤ笅涓涓晫闈紝鐐瑰嚮“閫夋嫨”鏉ュ畾浣嶆暟鎹簱銆?br />    7. 涓鴻繖涓暟鎹簱鍙栦竴涓暟鎹簮鍚?(DSN)銆?br />    8. 鐐瑰嚮紜畾銆?br /> 榪炴帴鍒?ODBC<br /> odbc_connect() 鍑芥暟鐢ㄤ簬榪炴帴鍒?ODBC 鏁版嵁婧愩傝鍑芥暟鏈夊洓涓弬鏁幫細鏁版嵁婧愬悕銆佺敤鎴峰悕銆佸瘑鐮佷互鍙婂彲閫夌殑鎸囬拡綾誨瀷鍙傛暟銆?br /> odbc_exec() 鍑芥暟鐢ㄤ簬鎵ц SQL 璇彞銆?br /> odbc_close()鍏抽棴榪炴帴<br /> <br /> <img src ="http://www.tkk7.com/rorely/aggbug/285288.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/rorely/" target="_blank">鏈熷緟鏄庡ぉ</a> 2009-07-03 10:02 <a href="http://www.tkk7.com/rorely/archive/2009/07/03/285288.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>php mysqli澶氫釜鏌ヨhttp://www.tkk7.com/rorely/archive/2009/07/02/285196.html鏈熷緟鏄庡ぉ鏈熷緟鏄庡ぉThu, 02 Jul 2009 07:56:00 GMThttp://www.tkk7.com/rorely/archive/2009/07/02/285196.htmlhttp://www.tkk7.com/rorely/comments/285196.htmlhttp://www.tkk7.com/rorely/archive/2009/07/02/285196.html#Feedback0http://www.tkk7.com/rorely/comments/commentRss/285196.htmlhttp://www.tkk7.com/rorely/services/trackbacks/285196.html mysqli_multi_query(mysqli link,string query)榪炵畫鎵ц澶氭鏌ヨ錛屾槸鍩轟簬榪囩▼鐨?br /> msyqli_more_results(mysqli link)涓昏紜畾榪斿洖鐨勭粨鏋滈泦鏄惁鏈夊叾浠栫殑緇撴灉闆?br /> mysqli_next_result(mysqli link)鑾峰彇涓嬩竴涓粨鏋滈泦
紺轟緥錛?br /> <?php
    #榪炴帴鏁版嵁搴?br />     $link=mysqli_connect("localhost","root","root");    
    #閫夋嫨鏁版嵁搴?br />     $link->select_db("rorely") or die("could not find database");
    #鏌ヨ鏁版嵁搴?br />     if($link->multi_query("select * from test;select name ,age ,sex,address from test")){
        do{
            $result=$link->store_result();
            while($row=$result->fetch_row()){
                echo "$row[0],$row[1],$row[2],$row[3]<br>";
            }
            if($link->more_results()) echo "**********<br>";
        }while($link->next_result());
    }
$link->close();
    
?>

緇撴灉濡備笅錛?br /> 1,Jane,26,female
3,Tome,21,male
4,Lily,25,female
5,Lucy,25,female
6,Jim,22,male
7,Jim,22,male
8,Jim,22,male
9,Jim,22,male
10,Jim,22,male
11,Jim,22,male
12,Jim,22,male
13,Jniu,22,female
14,Jim,22,male
15,Jim,22,male
18,Jim,22,male
20,Jim,22,male
78,lili,22,female
79,hj,30,male
80,hj,30,male
**********
Jane,26,female,wenming cun 123#
Tome,21,male,wenming cun 32#
Lily,25,female,wenming cun 2#
Lucy,25,female,wenming cun 2#
Jim,22,male,wenmin cun 45#
Jim,22,male,wenmin cun 45#
Jim,22,male,wenmin cun 45#
Jim,22,male,wenmin cun 45#
Jim,22,male,wenmin cun 45#
Jim,22,male,wenmin cun 45#
Jim,22,male,wenmin cun 45#
Jniu,22,female,address
Jim,22,male,wenmin cun 45#
Jim,22,male,wenmin cun 45#
Jim,22,male,wenmin cun 45#
Jim,22,male,wenmin cun 45#
lili,22,female,wenming cun 23#
hj,30,male,wenming cun 23#
hj,30,male,wenming cun 23#


]]>
php mysqli鎵╁睍搴?/title><link>http://www.tkk7.com/rorely/archive/2009/07/02/285190.html</link><dc:creator>鏈熷緟鏄庡ぉ</dc:creator><author>鏈熷緟鏄庡ぉ</author><pubDate>Thu, 02 Jul 2009 07:37:00 GMT</pubDate><guid>http://www.tkk7.com/rorely/archive/2009/07/02/285190.html</guid><wfw:comment>http://www.tkk7.com/rorely/comments/285190.html</wfw:comment><comments>http://www.tkk7.com/rorely/archive/2009/07/02/285190.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/rorely/comments/commentRss/285190.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/rorely/services/trackbacks/285190.html</trackback:ping><description><![CDATA[紺轟緥錛?br /> <?php<br />     #榪炴帴鏁版嵁搴?br />     $link=mysqli_connect("localhost","root","root");    <br />     #閫夋嫨鏁版嵁搴?br />     $link->select_db("rorely") or die("could not find database");<br />     #鏌ヨ鏁版嵁搴?br />     $result=$link->query("select * from test");<br />     #杈撳嚭鏁版嵁搴撹〃鍚勪釜璁板綍鐨勫唴瀹?br />     while($row=mysqli_fetch_object($result)){<br />         echo $row->id."  ".$row->name."  ".$row->age."    ".$row->sex."  ".$row->address."<hr>";<br />     }<br />     #鍏抽棴鏁版嵁搴?br />     mysqli_close($link);<br /> ?><br /> 1 Jane 26 female wenming cun 123#<hr /> 3 Tome 21 male wenming cun 32#<hr /> 4 Lily 25 female wenming cun 2#<hr /> 5 Lucy 25 female wenming cun 2#<hr /> 6 Jim 22 male wenmin cun 45#<hr /> 7 Jim 22 male wenmin cun 45#<hr /> 8 Jim 22 male wenmin cun 45#<hr /> 9 Jim 22 male wenmin cun 45#<hr /> 10 Jim 22 male wenmin cun 45#<hr /> 11 Jim 22 male wenmin cun 45#<hr /> 12 Jim 22 male wenmin cun 45#<hr /> 13 Jniu 22 female address<hr /> 14 Jim 22 male wenmin cun 45#<hr /> 15 Jim 22 male wenmin cun 45#<hr /> 18 Jim 22 male wenmin cun 45#<hr /> 20 Jim 22 male wenmin cun 45#<hr /> 78 lili 22 female wenming cun 23#<hr /> 79 hj 30 male wenming cun 23#<hr /> 80 hj 30 male wenming cun 23#<br /> <br /> <img src ="http://www.tkk7.com/rorely/aggbug/285190.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/rorely/" target="_blank">鏈熷緟鏄庡ぉ</a> 2009-07-02 15:37 <a href="http://www.tkk7.com/rorely/archive/2009/07/02/285190.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>php 杈呭姪鍑芥暟鍔熻兘http://www.tkk7.com/rorely/archive/2009/07/02/285178.html鏈熷緟鏄庡ぉ鏈熷緟鏄庡ぉThu, 02 Jul 2009 06:52:00 GMThttp://www.tkk7.com/rorely/archive/2009/07/02/285178.htmlhttp://www.tkk7.com/rorely/comments/285178.htmlhttp://www.tkk7.com/rorely/archive/2009/07/02/285178.html#Feedback0http://www.tkk7.com/rorely/comments/commentRss/285178.htmlhttp://www.tkk7.com/rorely/services/trackbacks/285178.html mysql_client_encoding()
mysql_get_server_info()
mysql_get_host_info()
mysql_get_client_info()
mysql_stat()

紺轟緥錛?br /> <?php
    $link=mysql_connect("localhost","root","root") or die("couldn't connect:".mysql_error());
    echo "瀛楃闆嗙殑鍚嶇О錛?".mysql_client_encoding()."<br>";
    echo "mysql鏈嶅姟鍣ㄤ俊鎭細  ".mysql_get_server_info()."<br>";
    echo "mysql涓繪満淇℃伅錛?nbsp; ".mysql_get_host_info()."<br>";
    echo "mysql瀹㈡埛鏈轟俊鎭細  ".mysql_get_client_info()."<br>";
    echo "褰撳墠緋葷粺鐨勭姸鎬侊細  ".mysql_stat()."<br>";
    mysql_close();
?>

緇撴灉錛?br /> 瀛楃闆嗙殑鍚嶇О錛?latin1
mysql鏈嶅姟鍣ㄤ俊鎭細 5.1.34-community
mysql涓繪満淇℃伅錛? localhost via TCP/IP
mysql瀹㈡埛鏈轟俊鎭細 5.0.51a
褰? 鍓嶇郴緇熺殑鐘舵侊細 Uptime: 2539 Threads: 1 Questions: 17 Slow queries: 0 Opens: 17 Flush tables: 1 Open tables: 1 Queries per second avg: 0.6


]]>
php 鑾峰彇瀛楁淇℃伅http://www.tkk7.com/rorely/archive/2009/07/02/285172.html鏈熷緟鏄庡ぉ鏈熷緟鏄庡ぉThu, 02 Jul 2009 06:33:00 GMThttp://www.tkk7.com/rorely/archive/2009/07/02/285172.htmlhttp://www.tkk7.com/rorely/comments/285172.htmlhttp://www.tkk7.com/rorely/archive/2009/07/02/285172.html#Feedback0http://www.tkk7.com/rorely/comments/commentRss/285172.htmlhttp://www.tkk7.com/rorely/services/trackbacks/285172.html mysql_fetch_field()
mysql_num_fields()
mysql_list_fields()
mysql_field_flags()
mysql_field_len()
mysql_field_name()
mysql_field_type()
mysql_field_table()
娉ㄦ剰錛氬瓧孌電殑灞炴ф湁錛歯ame ,table,max_length,not_null,primary_key,
unique_key,multiple_key,numeric,blob,type,unsigned,zerofill

紺轟緥錛?br /> <?php
    $link=mysql_connect("localhost","root","root") or die("couldn't connect:".mysql_error());
    mysql_select_db("rorely");
    $result=mysql_query("select * from test")or die("query failed:".mysql_error());
    for($i=0;$i<mysql_num_fields($result);$i++){
        $meta=mysql_fetch_field($result);
        if(!$meta) echo "娌℃湁瀛楁淇℃伅.<br>";
        echo "<pre>".$meta->name."<br>".$meta->type."<br>".$meta->max_length."<hr></pre>";
    }
    mysql_free_result($result);
    
?>

緇撴灉濡備笅錛?br />
id
int
2
name
string
4
age
int
2
sex
string
6
address
string
16



]]>
php 鏁版嵁搴撻珮綰ф搷浣?/title><link>http://www.tkk7.com/rorely/archive/2009/07/02/285054.html</link><dc:creator>鏈熷緟鏄庡ぉ</dc:creator><author>鏈熷緟鏄庡ぉ</author><pubDate>Thu, 02 Jul 2009 01:02:00 GMT</pubDate><guid>http://www.tkk7.com/rorely/archive/2009/07/02/285054.html</guid><wfw:comment>http://www.tkk7.com/rorely/comments/285054.html</wfw:comment><comments>http://www.tkk7.com/rorely/archive/2009/07/02/285054.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/rorely/comments/commentRss/285054.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/rorely/services/trackbacks/285054.html</trackback:ping><description><![CDATA[鏁版嵁搴撻珮綰ф搷浣?br /> (1)鑾峰彇鎶ラ敊淇℃伅mysql_error(),mysql_errno()<br /> string mysql_error([resource $link_identifier]);榪斿洖涓婁竴涓猰ysql鍑芥暟鐨勯敊璇枃鏈紝濡傛灉娌℃湁鍑洪敊鍒欒繑鍥炵┖瀛楃涓?br /> int mysql_errno([resource $link_identifier]);榪斿洖涓婁竴涓猰ysql鍑芥暟鐨勯敊璇彿鐮侊紝濡傛灉娌℃湁鍑洪敊鍒欒繑鍥?<br /> 渚嬪錛氶夋嫨涓涓笉瀛樺湪鐨勬暟鎹簱浼氬嚭閿欙紝鍦ㄤ竴涓凡緇忓瓨鍦ㄧ殑鏁版嵁搴撲腑錛屾搷浣滀竴涓笉瀛樺湪鐨勮〃涔熶細鍑洪敊銆?br /> <br /> (2)鑾峰彇鏁版嵁搴撳拰琛ㄧ殑淇℃伅<br /> mysql_list_dbs(),<br /> mysql_db_name(),<br /> mysql_list_tables(),<br /> mysql_tablename()<br /> 鍏蜂綋鐢ㄦ硶:<br /> resource mysql_list_dbs([resource $link_identifier])<br /> string mysql_db_name(resource $result,int $row[,mixed $field])<br /> resource mysql_list_tables(string $databaseName[,resource $link_identifier])<br /> string mysql_tablename(resource $result,int $i)<br /> (3)<br /> 鈻糾ysql_free_result()閲婃斁鍐呭瓨<br /> 鈻糾ysql_num_rows()鍒ゆ柇緇撴灉鎸囬拡涓墍鎸囪褰曠殑涓暟<br /> <?php<br />     #榪炴帴鏁版嵁搴?br />     $link=mysql_connect("localhost","root","root");<br />     //閫夋嫨鏁版嵁搴?-涓嶅瓨鍦ㄧ殑鏁版嵁搴擄紝鍑洪敊<br />     mysql_select_db("noexistentdb");<br />     echo mysql_error()."<br>";<br /> <br />     mysql_select_db("rorely");<br />     #鏌ヨ涓嶅瓨鍦ㄧ殑琛紝鍑洪敊<br />     mysql_query("select * from noexistenttable");<br />     echo mysql_error()."<hr>";<br /> <br />     #杈撳嚭鏁版嵁搴撳垪琛?br />     $db_list=mysql_list_dbs($link);<br />     while($row=mysql_fetch_object($db_list)) echo $row->Database."<br>";<br />     echo"<hr>";<br /> <br />     #杈撳嚭鏁版嵁搴撳垪琛ㄤ腑鎵鏈夋暟鎹簱鐨勫悕縐?br />     $i=0;<br />     $count=mysql_num_rows($db_list);<br />     while($i<$count){<br />         echo mysql_db_name($db_list,$i)."<br>";<br />         $i++;<br />     }<br />     echo"<hr>";<br /> <br />     #杈撳嚭鏁版嵁搴撳垪琛ㄤ腑鎵鏈夌殑鎵鏈夎〃mysql_list_tables(dbname)<br />     $result=mysql_list_tables("mysql");<br />     if(!$result) {<br />         print "DB error,could not list tables<br>";<br />         print "MySQL error:".mysql_error();<br />         exit;<br />     }<br />     while($row=mysql_fetch_row($result))<br />         print "Table:$row[0].<br>";<br />         <br />     mysql_free_result($result);<br />     echo"<hr>";<br /> <br />     #杈撳嚭鏁版嵁搴撹〃mysql_tablename(resource)<br />     $result=mysql_list_tables("rorely");<br />     for($i=0;$i<mysql_num_rows($result);$i++){<br />         printf("Table:%s<br>",mysql_tablename($result,$i));<br />     }<br />     mysql_free_result($result);<br /> ?><br /> <br /> 杈撳嚭緇撴灉濡備笅錛?br /> Unknown database 'noexistentdb'<br /> Table 'rorely.noexistenttable' doesn't exist<hr /> information_schema<br /> mysql<br /> rorely<br /> test<br /> <hr /> information_schema<br /> mysql<br /> rorely<br /> test<br /> <hr /> Table:columns_priv.<br /> Table:db.<br /> Table:event.<br /> Table:func.<br /> Table:general_log.<br /> Table:help_category.<br /> Table:help_keyword.<br /> Table:help_relation.<br /> Table:help_topic.<br /> Table:host.<br /> Table:ndb_binlog_index.<br /> Table:plugin.<br /> Table:proc.<br /> Table:procs_priv.<br /> Table:servers.<br /> Table:slow_log.<br /> Table:tables_priv.<br /> Table:time_zone.<br /> Table:time_zone_leap_second.<br /> Table:time_zone_name.<br /> Table:time_zone_transition.<br /> Table:time_zone_transition_type.<br /> Table:user.<br /> <hr /> Table:test<br /> <img src ="http://www.tkk7.com/rorely/aggbug/285054.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/rorely/" target="_blank">鏈熷緟鏄庡ぉ</a> 2009-07-02 09:02 <a href="http://www.tkk7.com/rorely/archive/2009/07/02/285054.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>php 鏄劇ず鏁版嵁琛ㄨ褰?/title><link>http://www.tkk7.com/rorely/archive/2009/07/01/284958.html</link><dc:creator>鏈熷緟鏄庡ぉ</dc:creator><author>鏈熷緟鏄庡ぉ</author><pubDate>Wed, 01 Jul 2009 07:51:00 GMT</pubDate><guid>http://www.tkk7.com/rorely/archive/2009/07/01/284958.html</guid><wfw:comment>http://www.tkk7.com/rorely/comments/284958.html</wfw:comment><comments>http://www.tkk7.com/rorely/archive/2009/07/01/284958.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/rorely/comments/commentRss/284958.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/rorely/services/trackbacks/284958.html</trackback:ping><description><![CDATA[processShowData.php<br /> <html><br />     <head><br />         <title>鏌ヨ鏁版嵁搴撹〃淇℃伅</title><br />     </head><br />     <body><br />         <center><br />             <form name="myForm" action="processShowData.php"><br />                 <table  border="1" cellspacing="0" cellpadding="0"><br />                     <caption>瀛︾敓涓瑙堣〃</caption><br />                         <th>瀛﹀彿</th><br />                         <th>濮撳悕</th><br />                         <th>騫撮緞</th><br />                         <th>鎬у埆</th><br />                         <th>鍦板潃</th><br />                         <?php<br />                             $link=mysql_connect("localhost","root","root");<br />                             mysql_select_db("rorely");<br />                             $exec="select * from test";<br />                             $result=mysql_query($exec);<br />                             while($rs=mysql_fetch_object($result)){<br />                                 $id=$rs->id;<br />                                 $name=$rs->name;<br />                                 $age=$rs->age;<br />                                 $sex=$rs->sex;<br />                                 $address=$rs->address;                    <br />                         ?><br />                     <tr align="center"><br />                     <td><?php echo $id ?></td><br />                     <td><?php echo $name ?></td><br />                     <td><?php echo $age ?></td><br />                     <td><?php echo $sex ?></td><br />                     <td><?php echo $address ?></td><br />                 </tr><br />                 <?php<br />                     }<br />                     mysql_close();<br />                 ?><br />                 </table><br />             </form><br />         </center><br />     </body><br /> </html><br /> <br /> 緇撴灉濡備笅錛?br /> <table border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <th>瀛﹀彿</th> <th>濮撳悕</th> <th>騫撮緞</th> <th>鎬у埆</th> <th>鍦板潃</th> </tr> <tr align="center"> <td>1</td> <td>Jane</td> <td>26</td> <td>female</td> <td>wenming cun 123#</td> </tr> <tr align="center"> <td>3</td> <td>Tome</td> <td>21</td> <td>male</td> <td>wenming cun 32#</td> </tr> <tr align="center"> <td>4</td> <td>Lily</td> <td>25</td> <td>female</td> <td>wenming cun 2#</td> </tr> <tr align="center"> <td>5</td> <td>Lucy</td> <td>25</td> <td>female</td> <td>wenming cun 2#</td> </tr> <tr align="center"> <td>6</td> <td>Jim</td> <td>22</td> <td>male</td> <td>wenmin cun 45#</td> </tr> <tr align="center"> <td>7</td> <td>Jim</td> <td>22</td> <td>male</td> <td>wenmin cun 45#</td> </tr> <tr align="center"> <td>8</td> <td>Jim</td> <td>22</td> <td>male</td> <td>wenmin cun 45#</td> </tr> <tr align="center"> <td>9</td> <td>Jim</td> <td>22</td> <td>male</td> <td>wenmin cun 45#</td> </tr> <tr align="center"> <td>10</td> <td>Jim</td> <td>22</td> <td>male</td> <td>wenmin cun 45#</td> </tr> <tr align="center"> <td>11</td> <td>Jim</td> <td>22</td> <td>male</td> <td>wenmin cun 45#</td> </tr> <tr align="center"> <td>12</td> <td>Jim</td> <td>22</td> <td>male</td> <td>wenmin cun 45#</td> </tr> <tr align="center"> <td>13</td> <td>Jim</td> <td>22</td> <td>male</td> <td>wenmin cun 45#</td> </tr> <tr align="center"> <td>14</td> <td>Jim</td> <td>22</td> <td>male</td> <td>wenmin cun 45#</td> </tr> <tr align="center"> <td>15</td> <td>Jim</td> <td>22</td> <td>male</td> <td>wenmin cun 45#</td> </tr> <tr align="center"> <td>18</td> <td>Jim</td> <td>22</td> <td>male</td> <td>wenmin cun 45#</td> </tr> <tr align="center"> <td>20</td> <td>Jim</td> <td>22</td> <td>male</td> <td>wenmin cun 45#</td> </tr> <tr align="center"> <td>78</td> <td>lili</td> <td>22</td> <td>female</td> <td>wenming cun 23#</td> </tr> <tr align="center"> <td>79</td> <td>hj</td> <td>30</td> <td>male</td> <td>wenming cun 23#</td> </tr> <tr align="center"> <td>80</td> <td>hj</td> <td>30</td> <td>male</td> <td>wenming cun 23#</td> </tr> </tbody> </table> <br /> <br /> <img src ="http://www.tkk7.com/rorely/aggbug/284958.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/rorely/" target="_blank">鏈熷緟鏄庡ぉ</a> 2009-07-01 15:51 <a href="http://www.tkk7.com/rorely/archive/2009/07/01/284958.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>php 鍒犻櫎鏁版嵁搴撹〃涓殑璁板綍http://www.tkk7.com/rorely/archive/2009/07/01/284956.html鏈熷緟鏄庡ぉ鏈熷緟鏄庡ぉWed, 01 Jul 2009 07:30:00 GMThttp://www.tkk7.com/rorely/archive/2009/07/01/284956.htmlhttp://www.tkk7.com/rorely/comments/284956.htmlhttp://www.tkk7.com/rorely/archive/2009/07/01/284956.html#Feedback0http://www.tkk7.com/rorely/comments/commentRss/284956.htmlhttp://www.tkk7.com/rorely/services/trackbacks/284956.html <html>
    <head>
    </head>
    <body>
        <form name="frm" action="processDeleteData.php" method="post">
            <table border="1" align="center" cellspacing="0" cellpadding="0">
                <caption>瀛︾敓涓瑙堣〃</caption>
                <th>閫夐」</th>
                <th>瀛﹀彿</th>
                <th>濮撳悕</th>
                <th>騫撮緞</th>
                <th>鎬у埆</th>
                <th>鍦板潃</th>
                <?php
                    $link=mysql_connect("localhost","root","root");
                    mysql_select_db("rorely");
                    $exec="select * from test";
                    $result=mysql_query($exec);
                    while($rs=mysql_fetch_object($result)){
                        $id=$rs->id;
                        $name=$rs->name;
                        $age=$rs->age;
                        $sex=$rs->sex;
                        $address=$rs->address;                    
                ?>
                <tr align="center">
                    <td><input type="radio" name="del" value=<?php echo $id ?> /></td>
                    <td><?php echo $id ?></td>
                    <td><?php echo $name ?></td>
                    <td><?php echo $age ?></td>
                    <td><?php echo $sex ?></td>
                    <td><?php echo $address ?></td>
                </tr>
                <?php
                    }
                    mysql_close();
                ?>
            </table>
            <center><input type="submit" value="鍒犻櫎" /></center>
        </form>
    </body>
</html>

processDeleteData.php澶勭悊鍒犻櫎欏甸潰
<?php
    $link=mysql_connect("localhost","root","root");
    mysql_select_db("rorely");
    $id=$_POST['del'];
    $exec="delete from test where id=$id";
    $result=mysql_query($exec);
    if((mysql_affected_rows()==0)||(mysql_affected_rows()==-1))
        echo"娌℃湁鎵懼埌璁板綍錛屾垨鑰呭垹闄ゆ椂浜х敓閿欒錛?;
    else echo"瀛︾敓宸插垹闄わ紒";
    mysql_close();
?>
<a href="deleteData.php">榪斿洖鍒犻櫎欏甸潰</a>



]]>
php 鍚戞暟鎹簱琛ㄤ腑鎻掑叆鏁版嵁http://www.tkk7.com/rorely/archive/2009/07/01/284940.html鏈熷緟鏄庡ぉ鏈熷緟鏄庡ぉWed, 01 Jul 2009 06:03:00 GMThttp://www.tkk7.com/rorely/archive/2009/07/01/284940.htmlhttp://www.tkk7.com/rorely/comments/284940.htmlhttp://www.tkk7.com/rorely/archive/2009/07/01/284940.html#Feedback0http://www.tkk7.com/rorely/comments/commentRss/284940.htmlhttp://www.tkk7.com/rorely/services/trackbacks/284940.html <html>
    <head>
        <title>鍚戞暟鎹簱涓彃鍏ユ暟鎹?lt;/title>
    </head>
    <body>
        <center>
            <form name="myForm" method="post" action="processInsertData.php">
                <table bgcolor="cyan">
                    <tr>
                        <td>瀛﹀彿</td>
                        <td><input type="text" name="txtId"  /></td>
                    </tr>
                    <tr>
                        <td>濮撳悕</td>
                        <td><input type="text" name="txtName" /></td>
                    </tr>
                    <tr>
                        <td>騫撮緞</td>
                        <td><input type="text" name="txtAge"></td>
                    </tr>
                    <tr>
                        <td>鎬у埆</td>
                        <td>
                            <select name="sSex">
                                <option value="male">male</option>
                                <option value="female">female</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>鍦板潃</td>
                        <td><input type="text" name="txtAddress"/></td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center">
                            <input type="submit" name="submit" value="娣誨姞"/>
                            <input type="reset" name="reset" value="閲嶇疆">
                        </td>
                    </tr>
                </table>
            </form>
        </center>
    </body>
</html>


澶勭悊鏁版嵁鎻掑叆欏甸潰processInsertData.php
<?php
    $link=mysql_connect("localhost","root","root");
    mysql_select_db("rorely");
    $id=$_POST['txtId']|null;
    $name=$_POST['txtName'];
    $age=$_POST['txtAge'];
    $sex=$_POST['sSex'];
    $address=$_POST['txtAddress'];

    $exec="insert into test values($id,'$name',$age,'$sex','$address')";
    $result=mysql_query($exec);
    if($result) echo "瀛︾敓宸叉坊鍔犲埌鏁版嵁琛ㄤ腑<br>";
    else echo "璇ュ鐢熸病鏈夋坊鍔犺繘鏁版嵁琛紝璇烽噸鏂拌緭鍏ャ?lt;br>";
    mysql_close();
?>
<a href="insertData.php">榪斿洖娣誨姞欏甸潰</a>



]]>
php 寤虹珛鏁版嵁搴撹繛鎺?/title><link>http://www.tkk7.com/rorely/archive/2009/07/01/284897.html</link><dc:creator>鏈熷緟鏄庡ぉ</dc:creator><author>鏈熷緟鏄庡ぉ</author><pubDate>Wed, 01 Jul 2009 03:00:00 GMT</pubDate><guid>http://www.tkk7.com/rorely/archive/2009/07/01/284897.html</guid><wfw:comment>http://www.tkk7.com/rorely/comments/284897.html</wfw:comment><comments>http://www.tkk7.com/rorely/archive/2009/07/01/284897.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/rorely/comments/commentRss/284897.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/rorely/services/trackbacks/284897.html</trackback:ping><description><![CDATA[(1) 寤虹珛榪炴帴<br /> (2錛夐夋嫨鏁版嵁搴?br /> (3) 鎵цSQL璇彞<br /> (4) 鍏抽棴鏁版嵁搴撹繛鎺?br /> <?php<br />     $link=mysql_connect("localhost","root","root");<br />     if($link)echo"榪炴帴鏁版嵁搴撴垚鍔燂紒";<br />     else echo"榪炴帴鏁版嵁搴撳け璐ワ紒";<br />     <br />     $sele=mysql_select_db("com");<br />     if($sele) echo"閫夋嫨鏁版嵁搴撴垚鍔燂紒";<br />     else echo"閫夋嫨鏁版嵁搴撳け璐ワ紒";<br /> <br />     $exec="select * from test";<br />     $result=mysql_query($exec);<br />     echo $result."<br>";<br /> <br />     $exec="insert into test values(null,'Janel',23,'female','wenmin cun 34#')";<br />     $result=mysql_query($exec);<br />     echo $result."<br>";<br />     <br />      mysql_close();<br /> <br /> ?><br /> <br /> <img src ="http://www.tkk7.com/rorely/aggbug/284897.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/rorely/" target="_blank">鏈熷緟鏄庡ぉ</a> 2009-07-01 11:00 <a href="http://www.tkk7.com/rorely/archive/2009/07/01/284897.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>閰嶇疆php涓巑ysql鐨勮繛鎺?php.ini鏂囦歡http://www.tkk7.com/rorely/archive/2009/07/01/284884.html鏈熷緟鏄庡ぉ鏈熷緟鏄庡ぉWed, 01 Jul 2009 02:13:00 GMThttp://www.tkk7.com/rorely/archive/2009/07/01/284884.htmlhttp://www.tkk7.com/rorely/comments/284884.htmlhttp://www.tkk7.com/rorely/archive/2009/07/01/284884.html#Feedback0http://www.tkk7.com/rorely/comments/commentRss/284884.htmlhttp://www.tkk7.com/rorely/services/trackbacks/284884.html 閰嶇疆php涓巑ysql鐨勮繛鎺?php.ini鏂囦歡
鐪嬪姞綺楅儴鍒嗐?br />
; Windows Extensions
; Note that ODBC support is built in, so no dll is needed for it.
; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
; extension folders as well as the separate PECL DLL download (PHP 5).
; Be sure to appropriately set the extension_dir directive.

;extension=php_bz2.dll
;extension=php_curl.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_exif.dll
;extension=php_fdf.dll
;extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_gmp.dll
;extension=php_ifx.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
;extension=php_mbstring.dll
;extension=php_mcrypt.dll
;extension=php_mhash.dll
;extension=php_mime_magic.dll
;extension=php_ming.dll
;extension=php_msql.dll
;extension=php_mssql.dll
    extension=/ext/php_mysql.dll
    extension=/ext/php_mysqli.dll

;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_pdo.dll
;extension=php_pdo_firebird.dll
;extension=php_pdo_mssql.dll
;extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_oci8.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
;extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
;extension=php_pspell.dll
;extension=php_shmop.dll
;extension=php_snmp.dll
;extension=php_soap.dll
;extension=php_sockets.dll
;extension=php_sqlite.dll
;extension=php_sybase_ct.dll
;extension=php_tidy.dll
;extension=php_xmlrpc.dll
;extension=php_xsl.dll
;extension=php_zip.dll


]]>
php shell_exec()涓庡弽鎾囧彿絳変環杈撳嚭緇撴灉http://www.tkk7.com/rorely/archive/2009/06/30/284782.html鏈熷緟鏄庡ぉ鏈熷緟鏄庡ぉTue, 30 Jun 2009 07:50:00 GMThttp://www.tkk7.com/rorely/archive/2009/06/30/284782.htmlhttp://www.tkk7.com/rorely/comments/284782.htmlhttp://www.tkk7.com/rorely/archive/2009/06/30/284782.html#Feedback0http://www.tkk7.com/rorely/comments/commentRss/284782.htmlhttp://www.tkk7.com/rorely/services/trackbacks/284782.html     #浣跨敤鍙嶆拠鍙鳳紝鏆楃ず浣滀負鍛戒護鏉ユ墽琛?br />     $result=`date`;
    echo "<p>the server timestamp is: $result</p>";

    echo "<hr color=red>";
    #浣跨敤shell_exec()
    $result1=shell_exec("date");
    echo "<p>the server timestamp is: $result1</p>";
?>

杈撳嚭緇撴灉濡備笅錛?br />

the server timestamp is: 褰撳墠鏃ユ湡: 2009/06/30 浜? 杈撳叆鏂版棩鏈? (騫存湀鏃?


the server timestamp is: 褰撳墠鏃ユ湡: 2009/06/30 浜? 杈撳叆鏂版棩鏈? (騫存湀鏃?





]]>
php file鎿嶄綔--鍒犻櫎絀虹洰褰?/title><link>http://www.tkk7.com/rorely/archive/2009/06/30/284775.html</link><dc:creator>鏈熷緟鏄庡ぉ</dc:creator><author>鏈熷緟鏄庡ぉ</author><pubDate>Tue, 30 Jun 2009 07:12:00 GMT</pubDate><guid>http://www.tkk7.com/rorely/archive/2009/06/30/284775.html</guid><wfw:comment>http://www.tkk7.com/rorely/comments/284775.html</wfw:comment><comments>http://www.tkk7.com/rorely/archive/2009/06/30/284775.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/rorely/comments/commentRss/284775.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/rorely/services/trackbacks/284775.html</trackback:ping><description><![CDATA[<?php<br />     #鍒犻櫎絀虹洰褰?br />     function delDir($dir){<br />         if($od=@opendir($dir)){<br />             while(($file=readdir($od))!=false){<br />                 if(($file==".")||($file==".."))continue;<br />                 if(is_dir($dir."/".$file)) delDir($dir."/".$file);<br />                 else unlink($od."/".$file);<br />             }<br />             @closedir($od);<br />             rmdir($dir);<br />             echo $dir." 鍒犻櫎鎴愬姛錛?lt;br>";<br />         }else echo"can't open ".$dir;<br />     }<br />     $dir="test/";<br />     delDir($dir);    <br /> ?><br /> <br /> 榪愯鐨勭粨鏋滐細<br /> test//testhello/testWorld 鍒犻櫎鎴愬姛錛?br /> test//testhello 鍒犻櫎鎴愬姛錛?br /> test/ 鍒犻櫎鎴愬姛錛?br /> <img src ="http://www.tkk7.com/rorely/aggbug/284775.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/rorely/" target="_blank">鏈熷緟鏄庡ぉ</a> 2009-06-30 15:12 <a href="http://www.tkk7.com/rorely/archive/2009/06/30/284775.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>php filetype() 鏂囦歡綾誨瀷http://www.tkk7.com/rorely/archive/2009/06/29/284667.html鏈熷緟鏄庡ぉ鏈熷緟鏄庡ぉMon, 29 Jun 2009 13:17:00 GMThttp://www.tkk7.com/rorely/archive/2009/06/29/284667.htmlhttp://www.tkk7.com/rorely/comments/284667.htmlhttp://www.tkk7.com/rorely/archive/2009/06/29/284667.html#Feedback0http://www.tkk7.com/rorely/comments/commentRss/284667.htmlhttp://www.tkk7.com/rorely/services/trackbacks/284667.html
<?php
    #鏂囦歡鍚嶇О
    echo basename("file/fileTest.php")."<hr color=red>";
    #鏂囦歡鍚嶇О錛屼笉鍚悗緙
    echo basename("file/fileTest.php",".php")."<hr color=red>";
    #鐩綍鍚嶇О
    echo dirname("file/fileTest.php")."<hr color=red>";
    #鐩綍鐨勮緇嗕俊鎭紝鍖呮嫭鏂囦歡鍚嶏紝鐩綍鍚嶏紝鏂囦歡鎵╁睍鍚?br />     $paths= pathinfo("file/fileTest.php");
    echo $paths["dirname"]."<hr color=red>";
    echo $paths["basename"]."<hr color=red>";
    echo $paths["extension"]."<hr color=red>";
    echo realpath("file/fileTest.php")."<hr color=red>";
    #鑾峰彇鏂囦歡綾誨瀷錛歠ile
    echo filetype("fileTest.php")."<hr color=red>";
    #鑾峰彇鏂囦歡綾誨瀷錛歞ir
    echo filetype('E:\\Program\\Apache2.2\\htdocs\\file\\')."<hr color=red>";
?>



]]>
php 鍙嶅皠綾?/title><link>http://www.tkk7.com/rorely/archive/2009/06/28/284477.html</link><dc:creator>鏈熷緟鏄庡ぉ</dc:creator><author>鏈熷緟鏄庡ぉ</author><pubDate>Sun, 28 Jun 2009 07:00:00 GMT</pubDate><guid>http://www.tkk7.com/rorely/archive/2009/06/28/284477.html</guid><wfw:comment>http://www.tkk7.com/rorely/comments/284477.html</wfw:comment><comments>http://www.tkk7.com/rorely/archive/2009/06/28/284477.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/rorely/comments/commentRss/284477.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/rorely/services/trackbacks/284477.html</trackback:ping><description><![CDATA[鍙嶅皠綾籖eflectionClass錛屽叾涓寘鍚殑鏂規硶鍙互閫氳繃涓嬮潰鐨勬柟娉曡幏鍙栵細紺轟緥濡備笅銆?br /> <br /> <?php<br />     $class=new ReflectionClass("ReflectionClass");<br />     $methods=$class->getMethods();<br />     foreach($methods as $method)<br />         echo $method->getName()."<br>";  <br /> ?><br /> <br /> 榪愯緇撴灉濡備笅錛?br /> __clone<br /> export<br /> __construct<br /> __toString<br /> getName<br /> isInternal<br /> isUserDefined<br /> isInstantiable<br /> getFileName<br /> getStartLine<br /> getEndLine<br /> getDocComment<br /> getConstructor<br /> hasMethod<br /> getMethod<br /> getMethods<br /> hasProperty<br /> getProperty<br /> getProperties<br /> hasConstant<br /> getConstants<br /> getConstant<br /> getInterfaces<br /> getInterfaceNames<br /> isInterface<br /> isAbstract<br /> isFinal<br /> getModifiers<br /> isInstance<br /> newInstance<br /> newInstanceArgs<br /> getParentClass<br /> isSubclassOf<br /> getStaticProperties<br /> getStaticPropertyValue<br /> setStaticPropertyValue<br /> getDefaultProperties<br /> isIterateable<br /> implementsInterface<br /> getExtension<br /> getExtensionName<br /> <br /> <br /> <img src ="http://www.tkk7.com/rorely/aggbug/284477.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/rorely/" target="_blank">鏈熷緟鏄庡ぉ</a> 2009-06-28 15:00 <a href="http://www.tkk7.com/rorely/archive/2009/06/28/284477.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>php 鎺ュ彛--鍙互澶氬疄鐜般?/title><link>http://www.tkk7.com/rorely/archive/2009/06/28/284470.html</link><dc:creator>鏈熷緟鏄庡ぉ</dc:creator><author>鏈熷緟鏄庡ぉ</author><pubDate>Sun, 28 Jun 2009 05:56:00 GMT</pubDate><guid>http://www.tkk7.com/rorely/archive/2009/06/28/284470.html</guid><wfw:comment>http://www.tkk7.com/rorely/comments/284470.html</wfw:comment><comments>http://www.tkk7.com/rorely/archive/2009/06/28/284470.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/rorely/comments/commentRss/284470.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/rorely/services/trackbacks/284470.html</trackback:ping><description><![CDATA[鎺ュ彛鐨勫垱寤轟嬌鐢ㄥ叧閿瓧interface錛屽疄鐜版帴鍙o紝浣跨敤鍏抽敭瀛梚mplements銆傛帴鍙g殑鏂規硶鍏ㄩ儴鏄痯ublic鏂規硶錛岃屼笖娌℃湁鏂規硶浣撱備竴涓被鍙互瀹炵幇澶氫釜鎺ュ彛銆傜ず渚嬪涓嬶細<br /> <br /> <?php<br />     interface myInterface{<br />         const str="涓浗浣犲ソ";<br />         public function getV();<br />         public function getH($name,$value);<br />     }<br /> <br />     interface expressEmotion{<br />         public function getEmotion();<br />     }<br />     class A implements myInterface,expressEmotion{<br />         public function getV(){<br />             echo self::str;<br />         }<br />         public function getH($name,$value){<br />             echo $name.=$value;<br />         }<br />         public function getEmotion(){<br />             echo "<br>蹇冩儏涓嶉敊銆?lt;br>";<br />         }<br />     }<br /> <br />     $a=new A();<br />     $a->getV();<br />     $a->getH("<br>鍖椾含","嬈㈣繋浣狅紒");<br />     $a->getEmotion();<br /> ?><br /> <br /> <br /> <img src ="http://www.tkk7.com/rorely/aggbug/284470.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/rorely/" target="_blank">鏈熷緟鏄庡ぉ</a> 2009-06-28 13:56 <a href="http://www.tkk7.com/rorely/archive/2009/06/28/284470.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>php 綾葷戶鎵?-鍗曠戶鎵?/title><link>http://www.tkk7.com/rorely/archive/2009/06/28/284465.html</link><dc:creator>鏈熷緟鏄庡ぉ</dc:creator><author>鏈熷緟鏄庡ぉ</author><pubDate>Sun, 28 Jun 2009 05:34:00 GMT</pubDate><guid>http://www.tkk7.com/rorely/archive/2009/06/28/284465.html</guid><wfw:comment>http://www.tkk7.com/rorely/comments/284465.html</wfw:comment><comments>http://www.tkk7.com/rorely/archive/2009/06/28/284465.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/rorely/comments/commentRss/284465.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/rorely/services/trackbacks/284465.html</trackback:ping><description><![CDATA[<?php<br />     class BaseClass{<br />         function __construct(){<br />             echo "<br><font color=red>this is the base class constructor</font><br>";<br />         }<br />     }<br />     class SubClass extends BaseClass{<br />         function __construct(){<br /> #瀛愮被璋冪敤鐖剁被鏋勯犳柟娉曠殑涓ょ錛岀埗綾誨悕::__construct();parent::__construct()<br />             BaseClass::__construct();<br />             parent::__construct();<br />             echo" <br> this is the sub class constructor<br>";<br />         }<br />     }<br />     echo "declare an instance of BaseClass<br>";<br />     $obj=new BaseClass();<br /> <br />     echo "declare an instance of SubClass<br>";<br />     $obj1=new SubClass();<br /> ?><br /> <img src ="http://www.tkk7.com/rorely/aggbug/284465.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/rorely/" target="_blank">鏈熷緟鏄庡ぉ</a> 2009-06-28 13:34 <a href="http://www.tkk7.com/rorely/archive/2009/06/28/284465.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>php 鎷瘋礉瀵硅薄http://www.tkk7.com/rorely/archive/2009/06/28/284454.html鏈熷緟鏄庡ぉ鏈熷緟鏄庡ぉSun, 28 Jun 2009 02:59:00 GMThttp://www.tkk7.com/rorely/archive/2009/06/28/284454.htmlhttp://www.tkk7.com/rorely/comments/284454.htmlhttp://www.tkk7.com/rorely/archive/2009/06/28/284454.html#Feedback0http://www.tkk7.com/rorely/comments/commentRss/284454.htmlhttp://www.tkk7.com/rorely/services/trackbacks/284454.html
<?php
    class Foo{
        private $x;
        private $y;
        public function setX($x){
            $this->x=$x;
        }
        public function setY($y){
            $this->y=$y;
        }
        public function getX(){
            return $this->x;
        }
        public function getY(){
            return $this->y;
        }
    }

    $foo1=new Foo;
    $foo1->setX(3);
    $foo1->setY(4);

    $foo2=clone $foo1;
    $foo2->setX(4);

    if($foo1->getX()!=$foo2->getX()) echo "they are not equal";
   
    function displayObj(Foo $foo){
        echo "<br>瀵硅薄鐨勫間負錛?lt;br>";
        echo $foo->getX()."<br>";
        echo $foo->getY()."<br>";

    }
    displayObj($foo1);
    displayObj($foo2);
?>



]]>
php鏋勯犲嚱鏁板拰鏋愭瀯鍑芥暟http://www.tkk7.com/rorely/archive/2009/06/28/284445.html鏈熷緟鏄庡ぉ鏈熷緟鏄庡ぉSun, 28 Jun 2009 01:53:00 GMThttp://www.tkk7.com/rorely/archive/2009/06/28/284445.htmlhttp://www.tkk7.com/rorely/comments/284445.htmlhttp://www.tkk7.com/rorely/archive/2009/06/28/284445.html#Feedback0http://www.tkk7.com/rorely/comments/commentRss/284445.htmlhttp://www.tkk7.com/rorely/services/trackbacks/284445.html 鏋愭瀯鍑芥暟:destructor

鍦╬hp5.1涓紝鏋勯犲嚱鏁扮粺涓鍛藉悕涓猴細
function __construct(){
    #鍑芥暟浣?br /> }

鏋愭瀯鍑芥暟緇熶竴鍛藉悕涓猴細
function __destruct(){
    #鍑芥暟浣?br /> }

娉ㄦ剰錛宑onstruct鍜宒estruct涔嬪墠鏈変袱涓笅鍒掔嚎錛屼笉鏄竴涓?br /> 涓嬮潰緇欏嚭涓涓瀯閫犲嚱鏁扮殑紺轟緥錛?br /> <?php
    class Car{
        private $color;
        private $size;
        private $price;
        function __construct(){
            $this->color="red";
            $this->size=4;
            $this->price=30000;
        }

        public function display(){
            echo $this->color."<br>";
            echo $this->size."<br>";
            echo $this->price."<br>";
        }
    }
    $car=new Car();
    $car->display();
?>





]]>
php涓?娑夊強鐨勭被鍨嬫彁紺?/title><link>http://www.tkk7.com/rorely/archive/2009/06/28/284443.html</link><dc:creator>鏈熷緟鏄庡ぉ</dc:creator><author>鏈熷緟鏄庡ぉ</author><pubDate>Sun, 28 Jun 2009 01:46:00 GMT</pubDate><guid>http://www.tkk7.com/rorely/archive/2009/06/28/284443.html</guid><wfw:comment>http://www.tkk7.com/rorely/comments/284443.html</wfw:comment><comments>http://www.tkk7.com/rorely/archive/2009/06/28/284443.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/rorely/comments/commentRss/284443.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/rorely/services/trackbacks/284443.html</trackback:ping><description><![CDATA[<span style="color: #ff0000;"></span>鍦╬hp涓紝鍙湁瀵硅薄綾誨瀷鍜屾暟緇勭被鍨嬶紝鍙互鍦ㄥ畾涔夊嚱鏁扮殑鏃跺欙紝鍦ㄥ艦鍙備腑娣誨姞綾誨瀷鎻愮ず銆備緥濡傦細<br /> <?php<br />     class MyClass{<br />         public $var="榪欓噷鐢ㄤ簡綾誨瀷鎻愮ず";<br />     }<br /> #綾誨瀷鎻愮ず錛屽彧鑳藉鏄璞″拰鏁扮粍綾誨瀷銆?br /> #瀵硅薄<br />     function MyFunction(<u><strong><span style="color: #ff0000;"><u><strong>MyClass</strong></u></span></strong></u> $foo){<br />         echo $foo->var;<br />     }<br />     $myClass=new MyClass;<br />     MyFunction($myClass);<br /> #鏁扮粍<br />     $arr=array("Jane","Jill","Lily","Tom");<br />     function displayArray(<u><strong></strong><strong><span style="color: #ff0000;">array</span></strong></u> $a){<br />         for($i=0;$i<count($a);$i++)<br />             echo $a[$i]."<br>";<br />     }<br /> <br />     displayArray($arr);<br /> ?><br /> <br /> <img src ="http://www.tkk7.com/rorely/aggbug/284443.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/rorely/" target="_blank">鏈熷緟鏄庡ぉ</a> 2009-06-28 09:46 <a href="http://www.tkk7.com/rorely/archive/2009/06/28/284443.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://lyjhjx.com" target="_blank">国产成人精品免费视频动漫</a>| <a href="http://zblinghang.com" target="_blank">sss日本免费完整版在线观看</a>| <a href="http://222mp3.com" target="_blank">无码日韩精品一区二区三区免费 </a>| <a href="http://yw762.com" target="_blank">国产成人无码区免费内射一片色欲</a>| <a href="http://dsdkg.com" target="_blank">亚洲熟伦熟女新五十路熟妇 </a>| <a href="http://yakonet.com" target="_blank">亚洲一区二区三区在线视频</a>| <a href="http://988938.com" target="_blank">免费人成大片在线观看播放电影</a>| <a href="http://wxxwy.com" target="_blank">亚洲av无码专区在线观看素人</a>| <a href="http://haha02.com" target="_blank">美女的胸又黄又www网站免费</a>| <a href="http://tuopumao.com" target="_blank">亚洲高清无码专区视频</a>| <a href="http://54vpn.com" target="_blank">国产免费区在线观看十分钟</a>| <a href="http://1992zyzp.com" target="_blank">亚洲综合伊人久久大杳蕉</a>| <a href="http://dazngt.com" target="_blank">精品免费视在线观看</a>| <a href="http://avxyz.com" target="_blank">亚洲无人区视频大全</a>| <a href="http://hbqueena.com" target="_blank">在线看片人成视频免费无遮挡</a>| <a href="http://qq2071.com" target="_blank">国产尤物在线视精品在亚洲</a>| <a href="http://bjlfggcm.com" target="_blank">不卡一卡二卡三亚洲</a>| <a href="http://8xk7u9.com" target="_blank">久久久久免费精品国产</a>| <a href="http://szgreater.com" target="_blank">亚洲小说区图片区</a>| <a href="http://tskes.com" target="_blank">女人18毛片水真多免费看 </a>| <a href="http://gsonlinet.com" target="_blank">成人国产精品免费视频</a>| <a href="http://skcncar.com" target="_blank">亚洲av无码一区二区乱子伦as </a>| <a href="http://dazhe777.com" target="_blank">91精品国产免费入口</a>| <a href="http://yisaoma.com" target="_blank">亚洲欧洲日韩国产一区二区三区</a>| <a href="http://dyk7.com" target="_blank">国产特级淫片免费看</a>| <a href="http://cg-fun.com" target="_blank">中文字幕免费人成乱码中国</a>| <a href="http://cdhxfj.com" target="_blank">亚洲韩国在线一卡二卡</a>| <a href="http://szq18888.com" target="_blank">欧亚精品一区三区免费</a>| <a href="http://mtsp2.com" target="_blank">一个人看的www在线免费视频</a>| <a href="http://xx9911.com" target="_blank">亚洲av无码成人黄网站在线观看</a>| <a href="http://goodwaysi.com" target="_blank">国产大片免费网站不卡美女</a>| <a href="http://hkschooltv.com" target="_blank">mm1313亚洲国产精品无码试看 </a>| <a href="http://by1687.com" target="_blank">成人免费a级毛片</a>| <a href="http://yangguang882.com" target="_blank">麻豆69堂免费视频</a>| <a href="http://liexion.com" target="_blank">亚洲尹人九九大色香蕉网站</a>| <a href="http://caita88.com" target="_blank">日韩成人免费aa在线看</a>| <a href="http://b7277.com" target="_blank">免费无码又爽又刺激一高潮</a>| <a href="http://18eeuus.com" target="_blank">亚洲午夜成人精品无码色欲</a>| <a href="http://wwwav800.com" target="_blank">亚洲色婷婷六月亚洲婷婷6月</a>| <a href="http://777cc55.com" target="_blank">100000免费啪啪18免进</a>| <a href="http://hubmba.com" target="_blank">av午夜福利一片免费看久久</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>