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

php³ÌÐòÔ±ÃæÊÔÌ⣨һ£©


1. ÓÃPHP´òÓ¡³öÇ°Ò»ÌìµÄʱ¼ä£¬´òÓ¡¸ñʽÊÇ2007Äê5ÔÂ10ÈÕ 22:21:21
2. PHP´úÂëÈçÏ£º
$a="hello"; 
$b=&$a;
unset($b);
$b="world"; 
echo $a;
Æä½á¹ûÊÇ£¿
3. PHP´úÂëÈçÏ£º
$str="cd"; 
  $$str="landog";  
$$str.="ok";
echo $cd;
Æä½á¹ûÊÇ£¿ 
4. ÓÃPHPдһ¶Î´úÂ룬ʵÏÖ²»Ê¹ÓõÚ3¸ö±äÁ¿£¬½»»»$a¡¢$bµÄÖµ£¬$a¡¢$bµÄ³õʼֵ×Ô¼º¶¨¡£
5. ¸ù¾ÝÌâÄ¿ÒªÇó£¬ÓÃPHPд³ö´úÂë¡£
±íÃûUser 
ID  Name   Tel         Content   Date 
1   ÕÅÈý 13333663366  ´óר±ÏÒµ  2006-10-11
3   ÕÅÈý 13612312331  ±¾¿Æ±ÏÒµ  2006-10-15
5   ÕÅËÄ 020-5566556  ÖÐר±ÏÒµ  2006-10-15
4   ÍõÎå 13521212125  ´óר±ÏÒµ   2006-12-25
2   …………
6   …………
¼ÙÉèÊý¾Ý¿âÁ¬½ÓÈçÏ£º
$mysql_db=mysql_connect("local","root","pass");
@mysql_select_db("DB",$mysql_db);
(1)²éѯ³öËùÓÐNameµÈÓÚ“ÕÅÈý”µÄ¼Ç¼£¬²¢Êä³ö¡£
(2)°´IDÉýÐò²éѯ£¬Ö»·µ»ØÅÅÐòºóµÄÇ°3Ìõ¼Ç¼£¬²¢Êä³ö¡£
6. javascriptÄÜ·ñ¶¨Òå¶þάÊý×飬Èç¹û²»ÄÜÄãÈçºÎ½â¾ö£¿
7. ¼ÙÉèa.htmlºÍb.htmlÔÚͬһ¸öÎļþ¼ÐÏÂÃ棬ÓÃjavascriptʵÏÖµ±´ò¿ªa.htmlÎåÃëÖÓºó£¬×Ô¶¯Ìøתµ½b.html¡£
8. ÓÐÁ½¸öÎļþa.htmlºÍa.php£¬´úÂëÈçÏ£º
a.html
<html>
<head>
  <meta http-equiv=Content-Type content=text/html;charset=utf-8>
  <title>PHP³ÌÐòÔ±ÃæÊÔ</title>
</head>
<body>
  <center> 
   <form method="post" action="a.php">
    <table border="1"> 
     <tr>
      <td align="right">ÐÕÃû£º</td>
      <


Ïà¹ØÎĵµ£º

PhpÖÐHeader£¨£©º¯ÊýÍøÒ³Êä³öµÄʹÓÃ

header("Expires: Mon, 26 Jul 2007 05:00:00 GMT"); »º´æʧЧʱ¼ä
     header("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT"); ×îºóÐÞ¸ÄÍøÒ³µÄʱ¼ä
     header("Cache-Control: no-cache, must-revalidate"); ½ûÓûº´æ
     header("Pragma: n ......

2010Äê×îÐÂPHPÀàµÄ¾«Ëõ¹éÄÉ

Ò»£º½á¹¹ºÍµ÷ÓÃ(ʵÀý»¯)£º
class className{} £¬µ÷Óãº$obj = new className();µ±ÀàÓй¹Ô캯Êýʱ£¬»¹Ó¦´«Èë²ÎÊý¡£Èç$obj = new className($v,$v2...);
¶þ£º¹¹Ô캯ÊýºÍÎö¹¹º¯Êý£º
1¡¢¹¹Ô캯ÊýÓÃÓÚ³õʼ»¯£ºÊ¹ÓÃ__construct()£¬¿É´ø²ÎÊý¡£
2¡¢µ«Îö¹¹º¯Êý²»ÄÜ´ø²ÎÊý£¨ÓÃÓÚÔÚÏúÈ¥Ò»¸öÀà֮ǰִÐÐһЩ²Ù×÷»ò¹¦ÄÜ£©¡£Îö¹¹º¯ÊýÓà ......

windowsÏÂPHP5+APACHE+MYSQLÍêÕûÅäÖÃ

Èí¼þ°æ±¾:
php-5.2.13-Win32
apache_2.2.9-win32-x86-no_ssl-r2.msi(×¢Ò⣺APACHE 2.2.X°æ±¾ÒÔÉÏÒªÔö¼Ó²å¼þ²ÅÖ§³ÖPHP 5µÄ)
mysql-5.1.44-win32.msi
ÏÈ×°µÄphp5,Ö±½Ó½âѹÎļþµ½C:\php(°²×°µ½ÄÄÀï²¢²»»áÓÐÓ°Ï죬ƾ¸öÈËϲºÅ£¬±¾ÎÄÖеÄËùÓз¾¶¶¼ÒÔÎҵݲװ·¾¶£¬Çë´ó¼ÒÔÚ×Ô¼ºµÄ»úÆ÷ÉÏ°²×°µÄʱºò×¢ÒâÐÞ¸ÄΪ×Ô¼ºµÄ·¾¶)
½Ó× ......

ʵÏÖÖ§³ÖpostºÍgetµÄPHPº¯Êý

function getsock($strUrl,$arrParameter=array(),$strMethod="POST"){
 if(!$strUrl||!$strMethod){ return "";}
 $strMethod = strtoupper($strMethod);
 $arrUrl = parse_url($strUrl);
 if($arrUrl["port"]==0){$arrUrl["port"]=80;}
 $fso = fsockopen($arrUrl["host"],$arrUrl["port"] ......

php»ñÈ¡·þÎñÆ÷ʱ¼ä

ºÜ¶àʱºòÎÒÃÇϲ»¶ÓÃjsÀ´»ñÈ¡ÈÕÆÚºÍʱ¼ä£¬µ«Õâ½ö½öÊÇ¿Í»§¶ËµÄ¡£
ÎÒÃÇ¿ÉÒÔÓÃphpµÄdateº¯Êý¼´¿ÉÀ´»ñÈ¡·þÎñÆ÷ÉϵÄʱ¼ä£º
 <?php
//½«Ê±ÇøÉèÖÃΪÖйú
date_default_timezone_set("PRC");
echo date("Y-m-d l H:i:s A");
//ÀýÊä³ö£º2010-03-06 Saturday 11:51:29 AM
?> ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ