phpЧÂʸßд·¨
0¡¢Óõ¥ÒýºÅ´úÌæË«ÒýºÅÀ´°üº¬×Ö·û´®£¬ÕâÑù×ö»á¸ü¿ìһЩ¡£ÒòΪPHP»áÔÚË«ÒýºÅ°üΧµÄ×Ö·û´®ÖÐËÑÑ°±äÁ¿£¬µ¥ÒýºÅÔò²»»á£¬×¢Ò⣺ֻÓÐechoÄÜÕâô×ö£¬ËüÊÇÒ»ÖÖ¿ÉÒ԰Ѷà¸ö×Ö·û´®µ±×÷²ÎÊýµÄ“º¯Êý”£¨Òë×¢£ºPHPÊÖ²áÖÐ˵echoÊÇÓïÑԽṹ£¬²»ÊÇÕæÕýµÄº¯Êý£¬¹Ê°Ñº¯Êý¼ÓÉÏÁËË«ÒýºÅ£©¡£
1¡¢Èç¹ûÄܽ«ÀàµÄ·½·¨¶¨Òå³Éstatic£¬¾Í¾¡Á¿¶¨Òå³Éstatic£¬ËüµÄËٶȻáÌáÉý½«½ü4±¶¡£
2¡¢$row[’id’] µÄËÙ¶ÈÊÇ$row[id]µÄ7±¶¡£
3¡¢echo ±È print ¿ì£¬²¢ÇÒʹÓÃechoµÄ¶àÖزÎÊý£¨Òë×¢£ºÖ¸ÓöººÅ¶ø²»ÊǾäµã£©´úÌæ×Ö·û´®Á¬½Ó£¬±ÈÈçecho $str1,$str2¡£
4¡¢ÔÚÖ´ÐÐforÑ»·Ö®Ç°È·¶¨×î´óÑ»·Êý£¬²»ÒªÃ¿Ñ»·Ò»´Î¶¼¼ÆËã×î´óÖµ£¬×îºÃÔËÓÃforeach´úÌæ¡£
5¡¢×¢ÏúÄÇЩ²»ÓõıäÁ¿ÓÈÆäÊÇ´óÊý×飬ÒÔ±ãÊÍ·ÅÄÚ´æ¡£
6¡¢¾¡Á¿±ÜÃâʹÓÃ__get£¬__set£¬__autoload¡£
7¡¢require_once()´ú¼Û°º¹ó¡£
8¡¢includeÎļþʱ¾¡Á¿Ê¹Óþø¶Ô·¾¶£¬ÒòΪËü±ÜÃâÁËPHPÈ¥include_pathÀï²éÕÒÎļþµÄËٶȣ¬½âÎö²Ù×÷ϵͳ·¾¶ËùÐèµÄʱ¼ä»á¸üÉÙ¡£
9¡¢Èç¹ûÄãÏëÖªµÀ½Å±¾¿ªÊ¼Ö´ÐУ¨Òë×¢£º¼´·þÎñÆ÷¶ËÊÕµ½¿Í»§¶ËÇëÇ󣩵Äʱ¿Ì£¬Ê¹ÓÃ$_SERVER[‘REQUEST_TIME’]ÒªºÃÓÚtime()¡£
10¡¢º¯Êý´úÌæÕýÔò±í´ïʽÍê³ÉÏàͬ¹¦ÄÜ¡£
11¡¢str_replaceº¯Êý±Èpreg_replaceº¯Êý¿ì£¬µ«strtrº¯ÊýµÄЧÂÊÊÇstr_replaceº¯ÊýµÄËı¶¡£
12¡¢Èç¹ûÒ»¸ö×Ö·û´®Ìæ»»º¯Êý£¬¿É½ÓÊÜÊý×é»ò×Ö·û×÷Ϊ²ÎÊý£¬²¢ÇÒ²ÎÊý³¤¶È²»Ì«³¤£¬ÄÇô¿ÉÒÔ¿¼ÂǶîÍâдһ¶ÎÌæ»»´úÂ룬ʹµÃÿ´Î´«µÝ²ÎÊýÊÇÒ»¸ö×Ö·û£¬¶ø²»ÊÇֻдһÐдúÂë½ÓÊÜÊý×é×÷Ϊ²éѯºÍÌæ»»µÄ²ÎÊý¡£
13¡¢Ê¹ÓÃÑ¡Ôñ·ÖÖ§Óï¾ä£¨Òë×¢£º¼´switch case£©ºÃÓÚʹÓöà¸öif£¬else ifÓï¾ä¡£
14¡¢ÓÃ@ÆÁ±Î´íÎóÏûÏ¢µÄ×ö·¨·Ç³£µÍЧ£¬¼«ÆäµÍЧ¡£
15¡¢´ò¿ªapacheµÄmod_deflateÄ£¿é£¬¿ÉÒÔÌá¸ßÍøÒ³µÄä¯ÀÀËٶȡ£
16¡¢Êý¾Ý¿âÁ¬½Óµ±Ê¹ÓÃÍê±ÏʱӦ¹Øµô£¬²»ÒªÓó¤Á¬½Ó¡£
17¡¢´íÎóÏûÏ¢´ú¼Û°º¹ó¡£
18¡¢ÔÚ·½·¨ÖеÝÔö¾Ö²¿±äÁ¿£¬ËÙ¶ÈÊÇ×î¿ìµÄ¡£¼¸ºõÓëÔÚº¯ÊýÖе÷Óþֲ¿±äÁ¿µÄËÙ¶ÈÏ൱¡£
19¡¢µÝÔöÒ»¸öÈ«¾Ö±äÁ¿Òª±ÈµÝÔöÒ»¸ö¾Ö²¿±äÁ¿Âý2±¶¡£
20¡¢µÝÔöÒ»¸ö¶ÔÏóÊôÐÔ£¨È磺$this->prop++£©Òª±ÈµÝÔöÒ»¸ö¾Ö²¿±äÁ¿Âý3±¶¡£
21¡¢µÝÔöÒ»¸öδԤ¶¨ÒåµÄ¾Ö²¿±äÁ¿Òª±ÈµÝÔöÒ»¸öÔ¤¶¨ÒåµÄ¾Ö²¿±äÁ¿Âý9ÖÁ10±¶¡£
22¡¢½ö¶¨ÒåÒ»¸ö¾Ö²¿±äÁ¿¶øûÔÚº¯ÊýÖе÷ÓÃËü£¬Í¬Ñù»á¼õÂýËٶȣ¨Æä³Ì¶ÈÏ൱ÓÚµÝÔöÒ»¸ö¾Ö²¿±äÁ¿£©¡£PHP´ó¸Å»á¼ì²é¿´ÊÇ·ñ´æÔÚÈ«¾Ö±äÁ¿¡£
23¡¢·½·¨µ÷Óÿ´À´ÓëÀàÖж¨ÒåµÄ·½·¨µÄÊýÁ¿Î޹أ¬ÒòΪÎÒ£¨ÔÚ²âÊÔ·½·¨Ö®Ç°ºÍÖ®ºó¶¼£©Ìí¼ÓÁË10¸
Ïà¹ØÎĵµ£º
PHP »·¾³ÅäÖÃ
PHP ¸ÅÊö
£º
PHPÊÇÓ¢Îij¬¼¶Îı¾Ô¤´¦ÀíÓïÑÔHypertext PreprocessorµÄËõд¡£PHP ÊÇÒ»ÖÖ HTML ÄÚǶʽµÄÓïÑÔ£¬ÊÇÒ»ÖÖÔÚ·þÎñÆ÷¶ËÖ´ÐеÄǶÈëHTMLÎĵµµÄ½Å±¾ÓïÑÔ£¬ÓïÑԵķç¸ñÓÐÀàËÆÓÚCÓïÑÔ£¬±»¹ã·ºµÄÔËÓá£
PHP ¹¦ÄÜ
£º
PHP ¶ÀÌصÄÓï·¨»ìºÏÁË C¡¢Java¡¢Perl ÒÔ¼° PHP ×Ô´´ÐµÄÓï·¨¡£Ëü¿ÉÒÔ±È CGI »òÕß Perl ¸ü¿ ......
AddSlashes: ×Ö·û´®¼ÓÈëбÏß¡£
bin2hex: ¶þ½øλת³ÉÊ®Áù½øλ¡£
Chop: È¥³ýÁ¬Ðø¿Õ°×¡£
Chr: ·µ»ØÐòÊýÖµµÄ×Ö·û¡£
chunk_split: ½«×Ö·û´®·Ö³ÉС¶Î¡£
convert_cyr_string: ת»»¹Å˹À·ò×Ö·û´®³ÉÆäËü×Ö·û´®¡£
crypt: ½«×Ö·û´®Óà DES ±àÂë¼ÓÃÜ¡£
echo: Êä³ö×Ö·û´®¡£
explode: Çпª×Ö·û´®¡£
flush: Çå³öÊä³ö»º ......
<html>
<head>
<title>¼ÆËã±¾ÖÜ¿ªÊ¼½áÊøÈÕÆÚ</title>
</head>
<body>
<form method="post" action="./index.html" enctype="utf-8">
<table>
<tr><td>ÊäÈëÄê·Ý</td><td><input name="year" type="text" maxlength="4" /></td> ......
windowsÏÂ:
1.ÏÂÔØÓÃÓÚ Windows µÄ Instant Client Basic ³ÌÐò°ü:http://download.oracle.com/otn/nt/instantclient/111070/instantclient-basic-win32-11.1.0.7.0.zip
2.½âѹËõ
´´½¨Ò»¸ö×ÓĿ¼£¨ÀýÈ磬d:\oci£©£¬È»ºó´ÓѹËõÎļþÖи´ÖÆÒÔÏ¿⣺
oraociei10.dll
orannzsbb10.dll
oci.dll
µ½´ËĿ¼ÏÂ
´ò¿ªPHP.ini ......
Õâ¸öϵͳÆäʵÊÇÁ·Ï°php»ù±¾Óï·¨ºÍMySQLµÄ»ù±¾²éѯÓï¾ä¡£¸øÒ»ÆðѧϰµÄÅóÓÑ·ÖÏí¡£ ^_^
ÔÚphpÎļþÖУ¬Ë«Ð±¸ÜºóÃæÊÇ×¢ÊÍÓï¾ä£¬ÎÒÓÃÓ¢ÎÄдµÄ×¢ÊÍ¡£
Õû¸öϵͳËù°üº¬µÄ.htmºÍ.phpÎļþÓУº
add_que.htm——Ìí¼ÓÐÂÌâµÄÒ³Ãæ
insert.php——ÏÔʾÌí¼ÓÐÂÌâÐÅÏ¢µÄÒ³Ãæ
questionlist.php——ËùÓÐÎÊÌâÁÐ ......