phpѧϰ±Ê¼Ç£¨12£©:PHP+MYSQLÁôÑ԰壨ÉÏ
require() Óë require_once()
ͨ³£·ÅÔÚ PHP ³ÌÐòµÄ×îÇ°Ã棬PHP ³ÌÐòÔÚÖ´ÐÐÇ°£¬¾Í»áÏȶÁÈë require
ËùÖ¸¶¨ÒýÈëµÄÎļþ£¬Èç¹û³öÏÖ´íÎóÊÇÖÂÃüµÄ¡£
nclude() Óë include_once()
¿ÉÒÔ·ÅÔÚ PHP ³ÌÐòµÄÈκÎÒ»¸öλÖã¬PHP ³ÌÐòÔÚÖ´Ðе½Ê±£¬²Å»áÏȶÁÈë
include ËùÖ¸¶¨ÒýÈëµÄÎļþ£¬Èç¹û³öÏÖ´íÎ󽫻áÌáʾ¡£
require('con.php') ;
include('con.php') ;
PHP5ÔÚĬÈϵÄÇé¿öϽÓÊÕ²ÎÊýÊÇÐèҪʹÓÃ
$_GET['value'];
$_POST['value'];
»¹¿ÉÒÔÔÚPHP.ini ÎļþÖеÄ
½«register_globals = Off
¸Äregister_globals = on
¿ÉÒÔÖ±½ÓʹÓã¬$valueµÄÖµ
con.php //Êý¾Ý¿âÅäÖÃ
add.php //²Ù×÷Îļþ
list.php //ÁбíÎļþ
Ë×»°Ëµ£ºÔ´ÂëÃæÇ°ÎÞÃØÃÜ£¬ÏÂÃæÎÒÃÇÀ´¿´Ô´´úÂ룺
add.php:
<?php
/*
* Created on 2010-1-4
* Author:CHAVUET
* Function:ÁôÑÔ°å
*/
?>
<script type="text/javascript">
function ClearInputs(){
document.myform[0].value="";
document.myform[1].value="";
document.myform[2].value="ÇëÊäÈëÄúµÄÁôÑÔÄÚÈÝ";
}
</script>
<form name="myform" action="conn.php" method="post">
<table align="center" style="margin-top:200px">
<tr>
<td>ÁôÑÔÈË£º<input type="text" name="user" size="10"/></td>
</tr>
<tr>
<td>±ê Ì⣺<input type="text" name="title" size="14"/></td>
</tr>
<tr>
<td>ÄÚ ÈÝ£º<textarea name="content">ÇëÊäÈëÄúµÄÁôÑÔÄÚÈÝ</textarea></td>
</tr>
<tr>
<td><input type="submit" name
Ïà¹ØÎĵµ£º
FCKeditor ÊÇÒ»¸öÊ®·ÖÇ¿´óµÄÍøÒ³Îı¾±à¼Æ÷£¬ËüÖ§³Ö¶àÖֽű¾±à³ÌÓïÑÔ(°üÀ¨ PHP)ºÍÖ§³Ö¶à¹úÓïÑÔ¡£
FCKeditor ½ØÖÁ 2008Äê4ÔÂ6ÈÕ£¬Æä×îа汾ÊÇ 2.6RC£¬RC ¾ÍÊÇ Release Candidate£¬ÐÞ¶©ºóµÄºòÑ¡°æ±¾£¬ºÜ¿ÉÄÜ×÷Ϊ¸Ã°æ±¾µÄÎȶ¨°æÔÚδÀ´·¢²¼¡£Ä¿Ç°µÄ×îеÄÎȶ¨°æ(Latest Stable)ÊÇ 2.5.1¡£ÎÒÃÇ¿ÉÒÔµ ......
תÌûÇë×¢Ã÷³ö´¦£¬²¢±£³ÖÎÄÕµÄÍêÕûÐÔ¡£
¶ÔMySQLÊý¾Ý¿âÀ´Ëµ£¬Í¬Ò»Ê±¿Ì£¬ÔÚͬһ¸öÁ¬½Ó£¨connection£©ÉÏ£¬Ö»ÔÊÐí½øÐÐÒ»¸ö²Ù×÷£¨query£¬etc.£©£¬Èç¹ûÄãµÄ³ÌÐòÊǶàÏ̵߳ģ¬²¢ÇÒÄãÔÚ¶à¸öÏß³ÌÖж¼»áÀûÓÃͬһ¸öconnection¶ÔÊý¾Ý¿â½øÐвÙ×÷£¬ÄÇô£¬¾ÍÓпÉÄÜ·¢ÉúÎÊÌâ¡£
ÀýÈ磬Äã¿ÉÄÜ»áÊÕµ½“Commands out of sync”µÄ´íÎó ......
1.
Download Apache for windows MSI
file, and run it
By
default, port is 80, root dir is %apache_dir%/htdocs. You can update the
settings in conf/httpd.conf file
2. If Apache Service can't be installed in "Control Panel > Admin Tools > Services&quo ......
ÔÎÄÁ´½Ó£ºhttp://www.williamlong.info/archives/1846.html
ÔÚWindows IIS
6.0ÏÂÅäÖÃPHP
£¬Í¨³£ÓÐCGI
¡¢ISAPI
ºÍFastCGI
ÈýÖÖÅäÖ÷½Ê½£¬ÕâÈýÖÖģʽ¶¼¿ÉÒÔÔÚIIS
6.0ϳɹ¦ÔËÐУ¬ÏÂÃæÎҾͽ²Ò»ÏÂÕâÈýÖÖ·½Ê½ÅäÖõÄÇø±ðºÍÐÔÄÜÉϵIJîÒì¡£
¡¡¡¡1¡¢CGI
£¨Í¨ÓÃÍø¹Ø½Ó¿Ú/Common Ga ......