ÎҵĵÚÒ»¸öPHP³ÌÐò
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>ÎÞ±êÌâÎĵµ</title>
<mce:style type="text/css"><!--
.STYLE1 {
font-family: "ÐÂËÎÌå";
font-size: 16px;
}
body,td,th {
color: #33CC00;
font-size: 24px;
}
.STYLE2 {
font-size: 36px;
font-family: "ËÎÌå";
}
--></mce:style><style type="text/css" mce_bogus="1">.STYLE1 {
font-family: "ÐÂËÎÌå";
font-size: 16px;
}
body,td,th {
color: #33CC00;
font-size: 24px;
}
.STYLE2 {
font-size: 36px;
font-family: "ËÎÌå";
}</style>
</head>
<?php
if( $_POST[ddd]=="jjj")
{
echo $_POST[textfield];
echo $_POST[textfield2];
echo "<p>µã»÷<a href="Untitled-1.php" mce_href="Untitled-1.php">ÕâÀï</a>ˢб¾Ò³¡£";
//echo "µã»÷ÕâÀïˢб¾Ò³¡£";
}
?>
<body>
<form id="form1" name="form1" method="post" action="Untitled-1.php">
<p>
<label> »¶ÓÄãµÄ¹âÁÙ£¡ </label>
<input name="ddd" type="hidden" id="ddd" value="jjj" />
</p>
<p> </p>
<p> </p>
<table width="295" border="1" align="center" bgcolor="#FFFF99">
<tr>
<td width="92" class="STYLE1">Óû§Ãû£º</td>
<td width="187" class="STYLE1"><input type="text" name="textfield" accesskey="user" /></td>
</tr>
<tr>
<td height="41" class="STYLE1">ÃÜÂ룺</td>
<td class="STYLE1"><input type="password" name="textfield2" /></td>
</tr>
</table>
<table width="227" height="33" border="1" align="center">
<tr>
<td width="105"><input type="submit" name="Submit" value="Ìá½»" /></td>
Ïà¹ØÎĵµ£º
<?php
$a = 1;
function b(&$c)
{
$c++;
return $c;
}
$d=b($a); // d = 2; a = 2;
$d++; // d = 2;
echo($a); // ÏÔʾ2
?>
ÒýÓ÷µ»Ø:
<?php
$a = 1;
function &b(&$c)
{
$c++;
return $c;
}
$d=b($a); // ×¢ÒâÕâÀï dÓëb·µ»ØµÄÖµ(È·ÇÐÀ´Ëµ, ÕâÀï·µ»ØµÄ² ......
ÓÉÓÚÏÖÔÚµÄä¯ÀÀÆ÷ÒѾ¿ÉÒÔʶ±ð¸ñʽΪtxtµÄÎĵµ¸ñʽ£¬ËùÒÔÈç¹ûÖ»ÊǸøtxtÎĵµ×öÒ»¸öÎÄ×ÖÁ´½ÓµÄ»°£¬¿ÉÄÜÖ»ÊÇ´ò¿ªÒ»¸öд°¿ÚÏÔʾtxtÎļþµÄÄÚÈÝ£¬²¢²»ÄÜʵÏÖµã»÷ÏÂÔصÄÄ¿µÄ¡£We have to do something else.
µ±È»Õâ¸öÎÊÌâµÄ½â¾ö°ì·¨Ò²¿ÉÒÔÊÇÄ㽫ÄãµÄtxtÎļþ¸ÄÃûΪä¯ÀÀÆ÷²»ÈÏʶµÄÎļþ£¬±ÈÈçrar,ÕâÑùµÄ»°µã»÷£¬ ......
·ÖÎöÍøÕ¾½á¹¹
¼ÈÈ»ÎÒÃÇÒѾ°²×° CI £¬ÎÒÃÇ¿ªÊ¼Á˽âËüÈçºÎ¹¤×÷¡£
¶ÁÕßÒѾ֪µÀ CI ʵÏÖÁËMVCʽÑù¡£ ͨ¹ý¶ÔĿ¼ºÍÎļþµÄÄÚÈݽøÐзÖÀà, ¶ø²»ÊÇÈôúÂë´ó¿é´ó¿éµØ¾À¼¯ÔÚÒ»Æð¡£
ÕâÒ»Õ£¬ÎÒÃǽ«»á¶Ô MVC ÀíÂÛ×ö¸ö¼ò¶ÌµÄ½éÉÜ, È»ºóÔÙ½éÉÜ CI µÄMVCʵÏÖ·½Ê½¡£ÌرðµØ£¬ÒªÁ˽âÄÇЩĿ¼ºÍÎļþÈçºÎ»¥Ïཻ»»ÐÅÏ¢£¿ÍøÕ¾½á¹¹ÊÇÔõÑùµÄ£¿ÒÔ ......
php config
1.°²×°Apache2.2
2.°²×°php5.2(×¢ÒâÑ¡ÔñËùÓеĿâÎļþ)
3.½«phpMyAdmin½âѹ£¬¿½±´ÖÁApache2.2\htdocs\phpmyadmin(¸Ã·¾¶¿ÉÒÔ×ÔÓɸıä)Ï¡£
4.ÐÞ¸ÄÅäÖÃÎļþ£º
1)ÐÞ¸Äphp.ini
¾ßÌå²Ù×÷£º
extension_dir = "C:\Program Files\PHP\ext" (536)
extension=php ......
VisualSVNÔö¼ÓÃÜÂëphpÐÞ¸ÄÒ³Ãæ
1.¼ÙÉèVisualSVN°²×°ÔÚ C:\Program Files\VisualSVN Server
2.ÏÂÔز¢°²×°php windows°æ±¾£¬¼ÙÉè°²×°ÔÚc:\php
¿ÉÒÔµ½php¹Ù·½ÍøÕ¾ÏÂÔØ www.php.net
¸½¼þÖдøµÄÊÇ php-5.3.2-Win32-VC6-x86.zip
3.VisualSVNÔö¼ÓphpÖ§³Ö
×¢ÒâÐÞ¸Ä "c:/php/php5apache2_2.dll" ΪÕýȷ·¾¶
C:\ ......