PHPÈÕ³£¿ª·¢Ð¡¼¼ÇÉ
PHPÅúÁ¿È¡µÃcheckboxµÄÖµ
1¡¢ÃüÃû
<input type='checkbox' name='checkbox[]' value=$dwmyrow[banzhu] />
2¡¢Ê¹ÓÃ
µ±¼Æ»®µ±×÷sqlÖ¸ÁîµÄÒ»²¿·Öʱ£ºÈç¹û²ÎÓë¿ØÖƵÄ×Ö¶ÎÊÇÊýÖµÐ͵ģ¬Ôò
if(! empty($_POST['checkbox'])) {
$expr = join(",", $_POST['checkbox']);
$sql = "select * from tbl_name where field in ($expr)";
}
Èç¹û²ÎÓë¿ØÖƵÄ×Ö¶ÎÊÇÊýÖµÐ͵ģ¬Ôò
if(! empty($_POST['checkbox'])) {
$expr = "'".join("','", $_POST['checkbox']).".";
$sql = "select * from tbl_name where field in ($expr)";
}
PHPÅжÏForm±íµ¥ÊÇ·ñÌá½»
$action=$HTTP_POST_VARS["Button1"];
if($action=="Ìá½»")
{
//Ö´ÐÐ±íµ¥²Ù×÷
}
else
{
//¶ÁȡĬÈÏÖµ
}
PHP »ñÈ¡×Ö·û´®³¤¶È
strlen($myrow[1])
PHP UrlתÏò
Header("Location: ".$_SERVER["HTTP_REFERER"]);
PHP³¬È«¾Ö¶ÔÏó
<?php
$a = 1;
$b = 2;
function Sum()
{
$GLOBALS["b"] = $GLOBALS["a"] $GLOBALS["b"];
}
Sum();
echo $b;
?>
PHP ±íµ¥È¡Öµ
Èç¹û mothod="get" ¾ÍÓà $_GET["test"] ´úÌæ$test
Èç¹û mothod="post" ¾ÍÓà $_POST["test"] ´úÌæ$test
PHPÈ¡µÃµ±Ç°IP
<?=$HTTP_SERVER_VARS["REMOTE_ADDR"]?>
PHP È¡µÃµ±Ç°Ê±¼ä
<?php
echo date("Y-m-d G:i:s");
?>
date("YÄêmÔÂdÈÕ")
Date ("Y-n-j")
Ïà¹ØÎĵµ£º
1.Èç¹ûÒ»¸ö·½·¨¿É¾²Ì¬»¯£¬¾Í¶ÔËü×ö¾²Ì¬ÉùÃ÷¡£ËÙÂÊ¿ÉÌáÉýÖÁ4±¶¡£
2.echo ±È print ¿ì¡£
3.ʹÓÃechoµÄ¶àÖزÎÊý£¨Òë×¢£ºÖ¸ÓöººÅ¶ø²»ÊǾäµã£©´úÌæ×Ö·û´®Á¬½Ó¡£
4.ÔÚÖ´ÐÐforÑ»·Ö®Ç°È·¶¨×î´óÑ»·Êý£¬²»ÒªÃ¿Ñ»·Ò»´Î¶¼¼ÆËã×î´óÖµ¡£
5.×¢ÏúÄÇЩ²»ÓõıäÁ¿ÓÈÆäÊÇ´óÊý×飬ÒÔ±ãÊÍ·ÅÄÚ´æ¡£
6.¾¡Á¿±ÜÃâʹÓÃ__get£¬__set£¬__autolo ......
ÏÖÔÚ»¹ÓкܶàÈ˸㲻¶®PHPºÍJAVA¿ª·¢µÄÐͬOAµ½µ×ÓÐʲô²»Í¬£¬¶Ô×Ô¼ºµ½µ×ÓÐʲôӰÏ죬ÒÔÖÁÓÚ×ö³öÁË´íÎóµÄÑ¡Ôñ¶øêݺ¦ÎÞÇî¡£±ÊÕ߸ù¾ÝÁ½ÖÖ¼¼ÊõµÄÌصãÖØÐÂÕûÀíÁËÒ»¸ö¶Ô±È£¬¸ø¹ØÐÄÐͬOA¼¼ÊõµÄ¶ÁÕß×ö¸ö²Î¿¼¡£
»ªÌ춯Á¦ÐͬOAÊDzÉÓÃJAVA¼¼ÊõµÄµäÐÍ´ú±í£¬²¢¾ßÓÐһϵÁÐÓÅ»¯É ......
PHPÕýÔò±í´ïʽÖ÷ÒªÓÃÓÚ×Ö·û´®µÄģʽ·Ö¸î¡¢Æ¥Åä¡¢²éÕÒ¼°Ìæ»»²Ù×÷¡£Ê¹ÓÃÕýÔò±í´ïʽÔÚijЩ¼òµ¥µÄ»·¾³Ï¿ÉÄÜЧÂʲ»¸ß£¬Òò´ËÈçºÎ¸üºÃµÄʹÓÃPHPÕýÔò±í´ïʽÐèÒª×ۺϿ¼ÂÇ¡£
ÎÒµÄPHPÕýÔòÈëÃÅ£¬ÊÇÆðÔ´ÓÚÍøÉϵÄһƪÎÄÕ£¬ÕâƪÎÄÕÂÓÉdzÈëÉîµÄ²ûÊöÁËPHPÕýÔò±í´ïʽʹÓõķ½·¨£¬ÎÒ¾õµÃÊÇÒ»¸öºÜºÃµÄÈëÃŲÄÁÏ£¬²»¹ýѧ³É»¹ÊÇÒª¿¿¸öÈË£¬ÔÚʹÓà ......
°æ±¾£ºapache_2.2.6-win32-x86-no_ssl
Ö±½Ó°´Ä¬ÈÏ°²×°£¬°²×°Ê±Òª¹Ø±Õä¯ÀÀÆ÷¸úÏÂÔØÈí¼þ£¬·ñÔò°²×°Íê³Éºó·þÎñÆ÷²»ÄÜÆô¶¯£¬±¨²»ÄÜ°ó¶¨80¶Ë¿ÚµÄ´íÎó¡£Æô¶¯ºóÔÚµØÖ·À¸ÖÐÊäÈë“http://localcast/”»ò“http://127.0.0.1/”£¬Èç¹û¿ÉÒÔ¿´µ½"It Works"£¬ËµÃ÷°²×°³É¹¦¡£
Èç¹ûÐèÒª¸ü¸ÄĬÈÏ·¾¶£¬´ò¿ª“C:\P ......