php ѧϰ
<?php
$txt = 'Hello world';
echo $txt;
?>
<br/>
×Ö·û´®Á¬½Ó(.)
<br/>
echo 'Hello world'. "" . '1234' Êä³ö£º
<?php
$txt1 = 'Hello world';
$txt2 = '1234';
echo $txt1. "" . $txt2;
?>
<br/>
strlen º¯ÊýÓ÷¨ echo strlen('Hello world') Êä³ö£º
<?php
$txt = 'Hello world';
echo strlen($txt);
?>
<br/>
strpos() ÔÚ×Ö·û´®ÖÐÕÒµ½Æ¥Å䣬¸Ãº¯Êý»á·µ»ØµÚÒ»¸öÆ¥ÅäµÄλÖà Êä³ö£º
<?php
echo strpos('Heldddlo world', 'world');
?>
<?php
$x = 5; $y = 0106;
echo $x = $x.$y;
?>
<br/>
<?
echo $y;
?>
<br/>
if .... elseif
<?
$d = date("D");
if ($d == "Wed")
echo "Have a nice weekend!<br/>";
else
echo "Have a nice day!";
?>
<br/>
<?php
switch ($x)
{
case 1:
echo "Number 1";
break;
case 2:
echo "Number 2";
break;
case 3:
echo "Number 3";
break;
default:
echo "No number between 1 and 3";
}
?>
<br/>
<?
$ages = array("Peter"=>32, "Quagmire"=>30, "Joe"=>34);
echo "Peter is ". $ages['Peter']. "years old.";
?>
<br/>
<?
$families = array
(
"Griffin"=>array
(
"Peter",
"Lois",
"Megan"
),
"Quagmire"=>array
(
"Glenn"
),
"Brown&quo
Ïà¹ØÎĵµ£º
ż¶û×ö¸ö¼òµ¥µÄWEB·þÎñ²âÊÔ³ÌÐò£¬ÎÒ»¹ÊÇϲ»¶²ÉÓÃPHP¡£¼ò½à£¬·ç¸ñºÍC/C++½Ó½ü£¬ÉÏÊֿ죬¶øÇÒ¿âÒ²ºÜÆëÈ«¡£ÒÔǰΪ¹ã¶«Òƶ¯×öÒƶ¯ÐÐÒµÖն˵ÄÑÝʾ³ÌÐòʱ£¬²ÉÓùúÄÚÒ»¸öÐÖµÜдµÄFleaPHP¿ªÔ´¿ò¼Ü£¬Á½Öܲ»µ½µÄʱ¼ä£¬ÎÒ´ÓÒ»¸ö¶ÔPHPÒ»ÎÞËùÖªµÄˮƽ£¬¿ìËٵĸ㶨ÁË30¶à¸öÒ³ÃæµÄºǫ́£¬ºóÀ´ÑÝʾЧ¹ûÒ²²»´í£¬Ò²ºÜÎȶ¨£¬´Ó´Ë¶ÔPHPÓÐÁ ......
×î½üÁ½ÌìÏîÄ¿ÐèÒª£¬ÓÉÓÚ·þÎñÆ÷ÕýÔÚ¿ª·¢£¬¿Í»§¶Ë½ø¶ÈÉÔ¿ìһЩ£¬Ã»ÓзþÎñÆ÷½øÐÐÁªµ÷¡£Òò´ËÎÒÖزپÉÒµ£¬ÓÃPHP¿ìËÙµÄдÁËһЩwebÒ³Ã棬ËãÊǵ±²âÊÔ×®³ÌÐòÁË£¬Æ߰˸öweb½Ó¿Ú£¬»ù±¾ÉÏ5µ½6¸öСʱ¸ã¶¨ÁË¡£ÓÉÓÚµ±Ç°µÄ·þÎñÆ÷ÐèÒªÓëÆäËû·þÎñÆ÷½øÐжԽӣ¬Òò´ËдµÄÕâ¸öweb·þÎñ»¹ÐèÒª³äµ±client½ÇÉ«£¬ÏòÆäËû·þÎñÆ÷·¢ËÍÇëÇó¡£
ÔÚÍøÉÏËÑÁËÒ» ......
±¾ÆªÎÄÕÂתÔØÍøÂ磬תÔصØÖ·£ºhttp://blog.s135.com/read.php?366
Nginx
("engine x") ÊÇÒ»¸ö¸ßÐÔÄÜµÄ HTTP ºÍ·´Ïò´úÀí·þÎñÆ÷£¬Ò²ÊÇÒ»¸ö IMAP/POP3/SMTP ´úÀí·þÎñÆ÷¡£ Nginx ÊÇÓÉ Igor Sysoev Ϊ¶íÂÞ˹·ÃÎÊÁ¿µÚ¶þµÄ Rambler.ru Õ¾µã¿ª·¢µÄ£¬ËüÒѾÔÚ¸ÃÕ¾µãÔËÐг¬¹ýÁ½Äê°ëÁË¡£Igor ½«Ô´´úÂëÒÔÀàBSDÐí¿ÉÖ¤µÄÐÎʽ ......
½ñÌìÒª½²µÄÊÇlinuxÏÂphpÀ©Õ¹µÄÈëÃÅƪ
¡¡¡¡ÏÂÃæÎÒÀ´½²½²ÈçºÎ×÷Ò»¸öphpµÄÀ©Õ¹
¡¡¡¡Ê×ÏÈÒªÓÐÒ»¸ö´î½¨ºÃµÄphp»·¾³
¡¡¡¡ÎÒ°ÑphpµÄ°²×°ÔÚÁË/usr/local/phpµ±È»Ò²Í¨¹ý
¡¡¡¡phpµÄÒ»¸öÅäÖÃphp.iniµÄ·¾¶µ«ÊÇҪעÒâÁË
¡¡¡¡ÓÃÕâÖÖ·½·¨°²×°µÄphpÀ©Õ¹²»ÄÜʵÏÖ
¡¡¡¡ÎÒÃÇÔÚphp°²×°ÒÔºóµÄ/usr/local/php/binĿ¼
¡¡¡¡ÕÒµ½Õâ¸öÎļþphp ......