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
Ïà¹ØÎĵµ£º
¿ªÔ´½¨Õ¾³ÌÐòÈñà³Ì¸ßÊÖºÍÖ»¶®´ò×ÖÉÏÍøµÄÈ˶¼¿ÉÒÔ¿ìËÙ½¨Á¢Ò»¸ö¹¦ÄÜÇ¿´ó¡¢½çÃæƯÁÁµÄÍøÕ¾¡£²»¹ÜÄãÊÇÏ뽨һ¸ö²©¿Í¡¢ÂÛ̳¡¢CMS¡¢µç×ÓÉÌÎñÍøÕ¾£¬»òÊÇWiki¡¢Ïà²á¹ÜÀí¡¢RSS¾ÛºÏºÍÀàDiggÍøÕ¾¡£Ä㶼¿ÉÒÔͨ¹ýÕâЩ½¨Õ¾¹¤¾ß¿ìËÙ½¨Á¢¡£
ÎÒÃÇ֮ǰ½éÉܹý23¸ö¿ªÔ´µÄCMS¹ÜÀíϵͳ£¬ÏÖÔÚÔòÈÃÎÒÃÇÀ´¿´Ò»ÏÂ26¿î¿ªÔ´½¨Õ¾³ÌÐò¡£
......
1.ʹÓà ip2long() ºÍ long2ip() º¯ÊýÀ´°Ñ IP µØַת»¯³ÉÕûÐÍ´æ´¢µ½Êý¾Ý¿âÀï¡£ÕâÖÖ·½·¨°Ñ´æ´¢¿Õ¼ä½µµ½Á˽ӽüËÄ·ÖÖ®Ò»£¨char(15) µÄ 15 ¸ö×Ö½Ú¶ÔÕûÐ뵀 4 ¸ö×Ö½Ú£©£¬¼ÆËãÒ»¸öÌض¨µÄµØÖ·ÊDz»ÊÇÔÚÒ»¸öÇø¶ÎÄÚÒ³¸ü¼òµ¥ÁË£¬¶øÇÒ¼Ó¿ìÁËËÑË÷ºÍÅÅÐòµÄËٶȣ¨ËäÈ»ÓÐʱ½ö½öÊÇ¿ìÁËÒ»µã£©¡£
2.ÔÚÑéÖ¤ email µØÖ·µÄʱºòʹÓà checkdnsrr() º ......
PhpµÄ½Å±¾¿éÓйصķûºÅ£º
1,XML·ç¸ñ£ºÅ£È˼«¶ÈÍƼöµÄÓ÷¨<?php …?>¡£
2,¼ò¶Ì·ç¸ñ:<?...?>×î¼òµ¥£¬×ñÑSGML(±ê׼ͨÓñê¼ÇÓïÑÔ)´¦Àí˵Ã÷µÄ·ç¸ñ¡£ÒªÏëÓÃËü£¬Ò»¶¨Òª¿ªÆôshort_open_tagÑ¡Ï»òÕßÆôÓö̱ê¼ÇµÄÑ¡Ïî±àÒëphp¡£(³õѧÕß¿´ÕÅÀÏʦÊÓƵʱ£¬¾ÍÈÝÒ×·¸Ã»ÓпªÆô¶Ì±ê¼ÇµÄ´íÎó¡£¹úÍâÅ£È˲»ÍƼö£¬µ«ÏÖÔÚ¹ú ......
Ç°¼¸ÌìÔÚѧϰPHPµÄʱºò×öÁËÒ»¸ö¼òµ¥µÄÊý¾ÝÔöɾ¸ÄµÄ³ÌÐò£¬ÓÉÓÚ×Ô¼ºÊǵÚÒ»´Î½Ó´¥PHPËùÒÔÔÚÐí¶àµØ·½×öµÄ²»µ½Î»£¬¸Ð¾õºÜǣǿ£¬µ«ÊDZϾ¹ÊÇ»¨ÁËʱ¼äµÄ£¬ËùÒÔÏÖÔÚÌù³öÀ´¡£
1.Íê³ÉÔöɾ²é¸ÄµÄÖ÷Ò³Ã棺connsql.php
<h1>Data Insert Delete Update</h1>
<?php
//»ñµÃÊý¾Ý¿âÁ¬½Ó
& ......
±¾ÆªÎÄÕÂתÔØÍøÂ磬תÔصØÖ·£ºhttp://blog.s135.com/read.php?366
Nginx
("engine x") ÊÇÒ»¸ö¸ßÐÔÄÜµÄ HTTP ºÍ·´Ïò´úÀí·þÎñÆ÷£¬Ò²ÊÇÒ»¸ö IMAP/POP3/SMTP ´úÀí·þÎñÆ÷¡£ Nginx ÊÇÓÉ Igor Sysoev Ϊ¶íÂÞ˹·ÃÎÊÁ¿µÚ¶þµÄ Rambler.ru Õ¾µã¿ª·¢µÄ£¬ËüÒѾÔÚ¸ÃÕ¾µãÔËÐг¬¹ýÁ½Äê°ëÁË¡£Igor ½«Ô´´úÂëÒÔÀàBSDÐí¿ÉÖ¤µÄÐÎʽ ......