Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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")


Ïà¹ØÎĵµ£º

PHP»ù´¡

1. »ù´¡Óï·¨
PHP µÄ½Å±¾¿éÒÔ <?php ¿ªÊ¼£¬ÒÔ ?> ½áÊø¡£Äú¿ÉÒÔ°Ñ PHP µÄ½Å±¾¿é·ÅÖÃÔÚÎĵµÖеÄÈκÎλÖá£
PHP ÖеÄÿ¸ö´úÂëÐж¼±ØÐëÒԷֺŽáÊø¡£·ÖºÅÊÇÒ»ÖÖ·Ö¸ô·û£¬ÓÃÓÚ°ÑÖ¸ÁÇø·Ö¿ªÀ´¡£
ÓÐÁ½ÖÖͨ¹ý PHP À´Êä³öÎı¾µÄ»ù´¡Ö¸Áecho ºÍ print¡£ÔÚÉÏÃæµÄÀý×ÓÖУ¬ÎÒÃÇʹÓÃÁË echo Óï¾äÀ´Êä³öÎı¾ "Hello World"¡£
Ô ......

ÓÅ»¯php´úÂëµÄ42Ìõ½¨Òé

1.Èç¹ûÒ»¸ö·½·¨¿É¾²Ì¬»¯£¬¾Í¶ÔËü×ö¾²Ì¬ÉùÃ÷¡£ËÙÂÊ¿ÉÌáÉýÖÁ4±¶¡£
2.echo ±È print ¿ì¡£
3.ʹÓÃechoµÄ¶àÖزÎÊý£¨Òë×¢£ºÖ¸ÓöººÅ¶ø²»ÊǾäµã£©´úÌæ×Ö·û´®Á¬½Ó¡£
4.ÔÚÖ´ÐÐforÑ­»·Ö®Ç°È·¶¨×î´óÑ­»·Êý£¬²»ÒªÃ¿Ñ­»·Ò»´Î¶¼¼ÆËã×î´óÖµ¡£
5.×¢ÏúÄÇЩ²»ÓõıäÁ¿ÓÈÆäÊÇ´óÊý×飬ÒÔ±ãÊÍ·ÅÄÚ´æ¡£
6.¾¡Á¿±ÜÃâʹÓÃ__get£¬__set£¬__autolo ......

PHP 5.3ÖеÄÐÂÌØÐÔ

×÷Õß ³ÂºÆ £¨Haohappy£©
MSN: haohappy # php.net
2009-08-13
 
±¾ÎÄ¿¯ÓÚ¡¶³ÌÐòÔ±¡·ÔÓÖ¾ 2009.09
תÔØÇë×¢Ã÷×÷Õß¼°³ö´¦
 
ºÁÎÞÒÉÎÊ£¬Èç½ñPHPÒѾ­³ÉΪWEB¿ª·½µ±ÖÐ×îÈÈÃŵļ¼ÊõÖ®Ò»¡£¸ù¾Ýnexen.netµÄµ÷²é£¬»¥ÁªÍøÉÏÈý·ÖÖ®Ò»µÄÍøվѡÔñPHPÀ´¿ª·¢·þÎñÆ÷¶Ë³ÌÐò¡£ÔÚÅ·ÃÀºÍÈÕ±¾µÈ¹ú¼Ò£¬PHP¿ª·¢Êг¡³ÊÏÖ³öһƬÐÀÐ ......

Apache+MySQL+PHP»·¾³ÅäÖÃ

°æ±¾£ºapache_2.2.6-win32-x86-no_ssl
Ö±½Ó°´Ä¬ÈÏ°²×°£¬°²×°Ê±Òª¹Ø±Õä¯ÀÀÆ÷¸úÏÂÔØÈí¼þ£¬·ñÔò°²×°Íê³Éºó·þÎñÆ÷²»ÄÜÆô¶¯£¬±¨²»ÄÜ°ó¶¨80¶Ë¿ÚµÄ´íÎó¡£Æô¶¯ºóÔÚµØÖ·À¸ÖÐÊäÈë“http://localcast/”»ò“http://127.0.0.1/”£¬Èç¹û¿ÉÒÔ¿´µ½"It Works"£¬ËµÃ÷°²×°³É¹¦¡£
Èç¹ûÐèÒª¸ü¸ÄĬÈÏ·¾¶£¬´ò¿ª“C:\P ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ