[zz]Ò»¸ö³¬¼¶¼òµ¥µÄphpͶƱϵͳ£¬²»Ê¹ÓÃÊý¾Ý¿â
±¾ÎÄת×ÔÎҵIJ©¿Í£º(my.unix-center.net/~xiaoshe)
http://my.unix-center.net/~xiaoshe/2010/04/19/%E4%B8%80%E4%B8%AA%E8%B6%85%E7%BA%A7%E7%AE%80%E5%8D%95%E7%9A%84php%E6%8A%95%E7%A5%A8%E7%B3%BB%E7%BB%9F%EF%BC%8C%E4%B8%8D%E4%BD%BF%E7%94%A8%E6%95%B0%E6%8D%AE%E5%BA%93/
´ÓÍøÉÏ·¢ÏÖµÄÒ»¸ö³¬¼¶¼òµ¥µÄ»ùÓÚphpµÄͶƱϵͳ£¬²»ÐèÒªÊý¾Ý¿â£¬Ê¹ÓÃÎļþÀ´´¢´æÍ¶Æ±½á¹û¡£
²Î¿¼ÍøÒ³Á´½Ó:
http://2008.gr0w.com/articles/code/php_5_star_rating_system_using_hreview/index.php
´úÂëÈçÏ£¬ÆäÖÐÎÒ¼ÓÁË×¢ÊÍ:
< ?
// User settings
$rater_ip_voting_restriction = true; // restrict ip address voting (true or false)
$rater_ip_vote_qty=1; // how many times an ip address can vote
$rater_already_rated_msg="You have already rated this item. You were allowed ".$rater_ip_vote_qty." vote(s).";
$rater_not_selected_msg="You have not selected a rating value.";
$rater_thankyou_msg="Thankyou for voting.";
$rater_generic_text="this item"; // generic item text
$rater_end_of_line_char="\n"; // may want to change for different operating systems
if(!isset($rater_id)) $rater_id=1;
if(!isset($rater_item_name)) $rater_item_name=$rater_generic_text;
// DO NOT MODIFY BELOW THIS LINE
$rater_filename='item_'.$rater_id.".rating";
$rater_rating=0;
$rater_stars="";
$rater_stars_txt="";
$rater_rating=0;
$rater_votes=0;
$rater_msg="";
// Rating action==½á¹ûÊǽ«Í¶Æ±µÄ½á¹ûдÈëÎļþÖУ¬Èç¹ûûÓÐsubmit,Ôò²»Ö´ÐУ¬Èç¹ûûÓÐÆÀ·Ö¾ÍsubmitÁË£¬ÔòÏÔʾ¸æ¾¯ÐÅÏ¢
if(isset($_REQUEST["rate".$rater_id])){ //ÅжÏsubmit°´Å¥ÓÐûÓб»°´ÏÂ
if(isset($_REQUEST["rating_".$rater_id])){//ÔÚ´Ë»ù´¡ÉÏÅжÏÓû§°´ÏÂsubmit°´Å¥Ê±ÊÇ·ñûÓÐÆÀ·Ö£¬Ã»ÓеϰÔò¸ø³öÒ»¸ö¸æ¾¯ÏûÏ¢
while(list($key,$val)=each($_REQUEST["rating_".$rater_id])){//½«Óû§µÄÆÀ·ÖÖµ´æÎªÖмä±äÁ¿rater_ratingÖµ,Æäʵ¾õµÃûÓбØÒªÓÃwhileµÄ±í´ïʽ
$rater_rating=$val;
}
$rater_ip = getenv("REMOTE_ADDR");//µÃµ½Óû§µÄip
$rate
Ïà¹ØÎĵµ£º
Mini2SAE
£º
Mini
--ºËÐÄÎļþÖ»ÓÐ15K
£¬
2
--to£¬
SAE
--Sina App Engine(ÐÂÀËÓ¦ÓÃÒýÇæ)
»ùÓÚSAE¿ìËÙ¡¢¼òµ¥µÄ¡¢ÇáÁ¿¼¶PHP¿ª·¢¿ò¼Ü……
×ñÑBSD¿ªÔ´ÐÒéµÄÃâ·Ñ¿ªÔ´¿ò¼Ü……
Ϊ²ÉÓ ......
The define() function defines a constant.
define()º¯ÊýµÄ×÷ÓÃÊÇ£º¶¨ÒåÒ»¸ö³£Á¿¡£
Constants are much like variables, except for the following differences:
³£Á¿[constant]Óë±äÁ¿[variable]ÓкܶàÏàËÆµÄµØ·½£¬Òò´Ë£¬ºÜÈÝÒ×»ìÏý£»ÏÂÃæ£¬ÎÒÃÇÁоÙһϳ£Á¿[constant]Óë±äÁ¿[variable]Ö®¼äµÄ²»Í¬µã£º
A constant's ......
phpÏÂÔØ£º
http://windows.php.net/download/
Ñ¡Ôñ
VC6 x86 Thread Safe (2010-Mar-04 20:11:08)
VC6 x86´ú±í Apache HTTP Server (httpd) 2.2.15 ºÍPHP½áºÏ
apacheÏÂÔØ£º
http://httpd.apache.org/download.cgi#apache22
Ñ¡Ôñ2.2.15
httpd-2.2.15-win32-x86-no_ssl.msi [PGP] [MD5] [SHA1]
apache services 2.2Ð ......
ÔÎĵØÖ·£ºhttp://hi.baidu.com/pengpeng5047/blog/item/c3f3b003d0452a034bfb519f.html
±ÈÈçÏÂÃæµÄ±íµ¥£º
/*form.php*/
<form action="getform.php" method="post">
<table border="1">
<tr>
<th>ÐÕÃû</th>
<th>ѧºÅ</th>
</tr>
<tr>
<td>ÕÅÈý< ......
PHP ³£Á¿ dirname(__file__)
__FILE__ :±»³ÆÎªPHPħÊõ³£Á¿ ,·µ»Øµ±Ç°Ö´ÐÐPHP½Å±¾µÄÍêÕû·¾¶ºÍÎļþÃû,°üº¬Ò»¸ö¾ø¶Ô·¾¶
1£©dirname(__FILE__) º¯Êý·µ»ØµÄÊǽű¾ËùÔÚÔڵķ¾¶¡£
±ÈÈçÎļþ b.php °üº¬ÈçÏÂÄÚÈÝ£º
<?php ......