PHP——ÔËËã·ûºÍ¹Ø¼ü×Ö
ÔÎÄÁ´½Ó£ºhttp://www.phpdo.net/index.php/2010/01/29/1-5/
ÒÔÏ´úÂëÊǼ¸¸ö±í´ïʽµÄÀý×Ó£º
¡¡¡¡$a = “phpdo.net”;
¡¡¡¡$sum = $var_a + $var_b;
¡¡¡¡$i++;
PHPÖÐÔËËã·ûÊDZí´ïʽÖжÔÔËËã·û½øÐвÙ×÷µÄ·ûºÅ£¬°üÀ¨ËãÊõÔËËã·û£¬×Ö·û´®ÔËËã·ûºÍÂß¼ÔËËã·ûµÈ¡£
PHPÓÐÒ»¸öÓëCÓïÑÔÀàËÆµÄ¸ÅÄî——¹Ø¼ü×Ö¡£
¹Ø¼ü×Ö¾ÍÊDZ»PHP±¾ÉíʹÓõÄÓÃÓÚʵÏÖһЩ»ù±¾²Ù×÷µÄ×Ö£¬ÕâЩ×Ö²»ÄÜÓÃÓÚÆäËüÓÃ;¡£
PHPÔÚ¶ÔÓÚ ¹Ø¼ü×ֵĵĶã±Ü±ÈÆäËûÓïÑÔÈÝÒ׺ܶ࣬ÒòΪPHPµÄ±ã±äÁ¿¶¼ÊÇÒÔ”$”¿ªÍ·¡£
PHPÖйؼü×Öͨ³£·ÖΪËÄÖÖÀàÐÍ£º
¡¡¡¡1¡¢ ÓÃÓÚÊý¾ÝÀàÐͶ¨ÒåµÄ¹Ø¼ü×Ö£¬È磺int£¬string£¬bool£¬classic£¬objectºÍarrayµÈ¡£
¡¡¡¡2¡¢ ÓÃÓÚÁ÷³Ì¿ØÖƽṹµÄ¹Ø¼ü×Ö£¬È磺if¡¢else¡¢elseif¡¢do¡¢while¡¢breakfºÍcontinueµÈ¡£
¡¡¡¡3¡¢ ÓÃÓÚÉèÖô洢ÀàÐ͵Ĺؼü×Ö£¬È磺static¡¢globalµÈ¡£
¡¡¡¡4¡¢ ÆäËûÀàÐ͵Ĺؼü×Ö¡£
Ïà¹ØÎĵµ£º
function FormatShowTime($nTotalSec)
{
//echo "total sec:" . $nTotalSec . '<br>';
$strTime = "";
//day
if ($nTotalSec > 3600 * 24)
{
$nDay = (int)($nTotalSec / (3600 * 24));
//$nDay > 0 ? $nDay : 1;
$strTime = $nDay;
$strTime .= 'Ìì';
//echo "nDay: ......
×î½üÑо¿PHPµÄһЩ¿ª·¢¼¼Êõ£¬·¢ÏÖPHPÓкܶàASPËùûÓеÄÓÅÐ㹦ÄÜ£¬¿ÉÒÔÍê³ÉһЩÒÔǰÎÞ·¨Íê³ÉµÄ¹¦ÄÜ£¬ÀýÈ綯̬Éú³ÉHTML¾²Ì¬Ò³Ã棬ÒÔ¼õÉÙ·þÎñÆ÷CPUµÄ¸ºÔØ£¬Ìá¸ßÓû§·ÃÎʵÄËÙ¶È¡£
¡¡¡¡ÎÒÃÇÖªµÀ£¬PHP¶ÁÈ¡MYSQL¶¯Ì¬ÏÔʾ£¬ÔÚ·ÃÎÊÁ¿´óµÄÇé¿öÏ£¬»áÓкܶàÐÔÄÜÎÊÌ⣬Èç¹û×âÓñðÈ˵ÄÐéÄâÖ÷»ú£¬Ôò»áÒòΪCPUÏûºÄ¹ý¶à¶ø±»ÏÞÖÆCPU£¬µ¼ÖÂÍø ......
ÎÒµÄϵͳÊÇredhat as5 ½¨Òé´ó¼ÒÍêÈ«°²×°£¬ÒÔÃⰲװʱȱÉÙÏà¹ØµÄ±àÒëÆ÷µÈµÈ¡£
Ò»¡¢°²×°mysql£¨mysql-5.0.21.tar.gz£©
# tar zxf mysql-5.0.21.tar.gz
# cd mysql-5.0.21
#./configure --prefix=/usr/local/mysql --sysconfdir=/etc --localstatedir=/var/lib/mysql/
˵Ã÷£º
#prefix=/usr/lo ......
±¾ÊéµÄ×î´óÌØµãÊÇÈ«²¿Î§ÈÆPHPµÄÃæÏò¶ÔÏó˼ÏëÉè¼Æ±àд£¬Ê¹¶ÁÕß¶ÔÓÚPHP¿ª·¢¼¼Êõ»áÓÐÉî¿ÌµÄÀí½â£¬Ò»²½Ò»²½µØÒýµ¼¶ÁÕß´ÓPHPÃæÏò¹ý³ÌµÄ¿ª·¢Ä£Ê½½øÈëµ½ÃæÏò¶ÔÏóµÄ¿ª·¢Ê±´ú¡£¾ßÌåµÄÌØµã°üÀ¨ÒÔϼ¸¸ö·½Ã棺
1. ÄÚÈÝÈ«Ãæ£¬±àÅźÏÀí
±¾ÊéµÄÄÚÈݷḻ£¬º¸ÇÁËPHPµÄ¾ø´ó¶àÊý֪ʶµã£¬²¢ÔÚÄ ......
µÚ1Õ LAMPÍøÕ¾¹¹½¨ 1
1.1 ÍøÕ¾Èí¼þ¼ò½é.... 1
1.1.1 B/SÈí¼þÌåϵ½á¹¹... 1
1.1.2 ¶¯Ì¬ÍøÕ¾½éÉÜ... 2
1.2 ¶¯Ì¬ÍøÕ¾Èí¼þ¿ª·¢ËùÐèµÄWeb¹¹¼þ.... 3
1.2.1 ¿Í»§¶Ëä¯ÀÀÆ÷... 4
1.2.2 À©Õ¹³¬Îı¾±ê¼ÇÓïÑÔXHTML. 5
1.2.3 ²ãµþÑùʽ±íCSS. 6
1.2.4 ......