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

µÚÒ»¸öphp³ÌÐò£¬ÁôÑÔ°å

Ò»²¨ÈýÕÛ°¡£¬ÀÏÊÇÍü¼Ç´òµ¥´Ê
<body bgcolor="#0080FF"" >
<form action="bbs.php" method="post" name="Form">
<table border=0 cellpadding=2 cellspacing=0 >
<tr>
    <td align=right>Ãû×Ö£º</td>
    <td><input type=text size=40 name=Ename value='' maxlength=50 ></td></tr>
<tr>
    <td align=right>Email:</td><td><input type=text size=40 name=email value='' maxlength=100 ></td>
</tr>
<tr>
    <td valign=top  align=right>ÁôÑÔ£º</td>
    <td><textarea name=content rows=4 cols=40 wrap=virtual></textarea></td>
</tr>
<tr>
   
    <td>  </td><td><div align="center">
        <input type=submit  value='Ìí¼Ó'>&nbsp;
        <input type=reset  value='Çå³ý'>&nbsp;
    </div>
       
    </td>
</tr>
<tr>
    <td></td>
    <td>&nbsp;</td>
</tr>
</table>
<br>
<?php
//Á¬½ÓÊý¾Ý¿â
$link=mysql_connect('localhost' , 'root' , '');
if (!$link)
{
    die('Could not connect:'.mysql_error());
}
mysql_select_db("bbs");
//ÅжÏÐÕÃûÊÇ·ñΪ¿Õ
if(!empty($_POST['Ename']))
{
    $Ename=($_POST['Ename']);
    $email=($_POST['email']);
    $content=($_POST['content']); //content¾ÍÊÇÄÚÈݵÄÒâ˼
    $PostDate=getdate();
    //¶¨ÒåÊý¾Ýµ½bbs±íµÄSQL×Ö·û´®
    $SQL="insert into bbs(Ename,email,content,postDate) values('$Ename','$email','$content',Now());";
    //Ö´ÐвåÈëÓï¾ä
    mysql


Ïà¹ØÎĵµ£º

PHPÈëÃŵÄѧϰ·½·¨


ÿ¸öÈ˵Äѧϰ·½Ê½²»Í¬£¬Ð´ÕâƪÎÄÕµÄÄ¿µÄÊÇ·ÖÏíÒ»ÏÂ×Ô¼ºµÄѧϰ¹ý³Ì£¬½ö¹©²Î¿¼£¬²»ÒªÒ»Î¶µÄÓñðÈ˵Äѧϰ·½·¨£¬ÕÒ¶Ô×Ô¼ºÓÐÓõÄѧϰ·½Ê½
¡¡¡¡¾­³£ÔÚijЩÂÛ̳ºÍQQȺÀï¿´µ½Ò»Ð©ÅóÓÑ»áÎÊ“ÔõÑù²ÅÄÜѧºÃPHP£¬ÔõÑù²ÅÄÜѧºÃ***ÓïÑÔ ”£¬µ«±ðÈ˻شð×î¶àµÄÊÇ£º´Ó×òµ¥”µÄ¿ªÊ¼¡£
¡¡¡¡Õâ¸ö¼òµ¥Ò²ÐíÕæµÄ²»¼òµ ......

phpÃæÊÔÌ⸽´ð°¸¶þ

1¡¢ÈçºÎʵÏÖ×Ö·û´®·­×ª£¿
<?php
function getStr($str){
        $len=strlen($str);
        for ($i=0;$i<$len/2;$i++){
                $temp=$str[$i ......

ÓÃPHPץȡÊý¾Ý

ÓÃPHPʵÏÖ¼òµ¥µÄÊý¾Ýץȡ
·½·¨Ò»£º
<?php
     $urlstr = file_get_contents("http://www.baidu.com");
     $urlstr = htmlspecialchars($urlstr);
     print_r($urlstr);
?>
·½·¨¶þ£º£¨ÐèÒª´ò¿ªcurlÀ©Õ¹£©
×¢Ò⣺´ò¿ªcurlÀ©Õ¹Ê±£¬Ò»¶¨Òª¿´¿ ......

PHPÔÚXPÏÂIISºÍApache2·þÎñÆ÷Éϵݲװ

×î½ü£¬ÓÐÐí¶àÅóÓÑÎÊÎÒÔÚWindowsXpÏÂPHPµÄ°²×°¹ý³Ì£¬ÕýºÃ×î½üÎÒÔÚ×Ô¼ºµÄ»úÆ÷Éϳɹ¦µÄÒÔÄ£¿é»¯µÄ·½Ê½°²×°ÁËPHP4.23¡£¼ÈÈ»Õâô¶àÅóÓÑÐèÒª£¬ÎÒ¾ÍÒÔ×î³£¼ûµÄIISºÍApache·þÎñÆ÷ΪÀý£¬°ÑPHPÔÚWindowsXPϵݲװ¹ý³Ìд³öÀ´°É£¬Ï£ÍûÄܶÔÒª°²×°PHPµÄÅóÓÑÓеã°ïÖú¡£Èç¹û²»¼ÓÌØÊâ˵Ã÷£¬ÒÔϵĽéÉÜͬʱҲÊÊÓÃÓÚWin2000°æ±¾¡£
Ò»¡¢¸ÅÊö£ ......

php»·¾³´î½¨

phpÏÂÔØ£º
http://windows.php.net/download/
Ñ¡Ôñ
VC6 x86 Thread Safe (2010-Mar-04 20:11:08)
VC6 x86´ú±í Apache HTTP Server (httpd) 2.2.15 ºÍPHP½áºÏ
apacheÏÂÔØ£º
http://httpd.apache.org/download.cgi#apache22
Ñ¡Ôñ2.2.15
httpd-2.2.15-win32-x86-no_ssl.msi [PGP] [MD5] [SHA1]
apache services 2.2Ð ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ