PHP ´´½¨Êý¾Ý¿âÁ·Ï°
<?php
header("Content-type:text/html","Charset=UTF-8");
$file="config/config.php";
if(is_writable($file)!=null){
echo "Îļþ¿ÉдÈë \n";
}else{
echo "Îļþ²»¿Éд|";
exit();
}
if(isset($_POST["install"])){
$string = "<?php \n";
$string .="\$mysql_host=\"$_POST[db_host]\";\n";
$string .="\$mysql_user=\"$_POST[db_user]\";\n";
$string .="\$mysql_pass=\"$_POST[db_pass]\";\n";
$string .="\$mysql_dbname=\"$_POST[db_dbname]\";\n";
$string .="\$mysql_tag=\"$_POST[db_tag]\";\n";
$string .= "?>";
if($f=fopen($file,"w+")){
echo "ÎļþÒÑ´ò¿ª|";
if(fwrite($f,$string)===false){
echo "ÎļþÎÞ·¨ÓëÈë";
exit();
}
else{
echo "ÎļþдÈë³É¹¦";
include_once($file);
if($link = mysql_connect($mysql_host,$mysql_user,$mysql_pass)or die("Êý¾ç¿âÁ´½Óʧ°Ü")){
mysql_query("CREATE DATABASE `$mysql_dbname` CHARACTER SET utf8 COLLATE utf8_general_ci");
if(mysql_select_db($mysql_dbname)){
echo "|Êý¾Ý¿â´´½¨³É¹¦|";
$mysql_add_table[]= "CREATE TABLE `".$mysql_tag."j1`(
`id` int(8) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(15) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`types` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
PRIMARY KEY (`id`)
);";
$mysql_add_table[]= "CREATE TABLE `".$mysql_tag."j2`(
`id` int(8) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(15) CHARACTER SET utf8 COLLATE
Ïà¹ØÎĵµ£º
ǰ¼¸ÌìÔÚFirebugÀ©Õ¹¿ª·¢Ò»ÎÄÖоÍÌáµ½¹ýFirephpÕâ¸ö»ùÓÚFirebugµÄ²å¼þ£¬Í¨¹ýʹÓÃFirephpÄã¿ÉÒÔÔÚFirebugµÄConsoleÀ¸Öп´µ½Òªµ÷ÊÔµÄÊý¾Ý£¬¶ø²»Ó°Ïìphp³ÌÐòµÄÕý³£Ö´ÐУ¬ËùÒÔ˵£¬Õâ¶«Î÷¶ÔÓÚAjax¿ª·¢ÊǺÜÓаïÖúµÄ£¡ÏÂÃæÒ»ÆðÀ´¿´ÏÂFirephpµÄʹÓ÷½·¨¡£
µÚÒ»²½£º°²×°
1.Èç¹ûÄãµÄFireFoxûÓÐFirebugÕâ¸ö²å¼þµÄ»°£¬Ê×ÏÈÒª°²×°Fire ......
¹¹Ôì·½·¨ÓÖ³ÆÎª¹¹Ô캯Êý£¬ÊǶÔÏó±»´´½¨Ê±×Ô¶¯µ÷Óõķ½·¨£¬ÓÃÀ´Íê³ÉÀà³õʼ»¯µÄ¹¤×÷¡£
¹¹Ô캯ÊýºÍÆäËüº¯ÊýÒ»Ñù£¬¿ÉÒÔ´«µÝ²ÎÊý£¬¿ÉÒÔÉ趨²ÎÊýĬÈÏÖµ¡£¹¹Ô캯Êý¿ÉÒÔµ÷ÓÃÊôÐÔ£¬¿ÉÒÔµ÷Ó÷½·¨¡£¹¹Ô캯Êý¿ÉÒÔ±»ÆäËü·½·¨ÏÔʽµ÷Óá£
ÔÚPHP4 ÖÐʹÓÃÓëÀàÃûͬÃûµÄ·½·¨Îª¹¹Ô캯Êý¡£ÔÚPHP5ÖÐÒÀȻ֧³ÖÁËÕâÖÖ·½Ê½£¬µ«²»½¨ÒéÔÙʹÓÃÕâÖÖ·½Ê½¡ ......
¼Ì³ÐÊÇÃæÏò¶ÔÏó×îÖØÒªµÄÌØµãÖ®Ò»£¬¾ÍÊÇ¿ÉÒÔʵÏÖ¶ÔÀàµÄ¸´Óá£
ͨ¹ý“¼Ì³Ð”Ò»¸öÏÖÓеÄÀ࣬¿ÉÒÔʹÓÃÒѾ¶¨ÒåµÄÀàÖеķ½·¨ºÍÊôÐÔ¡£
¼Ì³Ð¶ø²úÉúµÄÀà½Ð×ö×ÓÀà¡£
±»¼Ì³ÐµÄÀ࣬½Ð×ö¸¸À࣬Ҳ±»³ÉΪ³¬Àà¡£
PHPÊǵ¥¼Ì³ÐµÄ£¬Ò»¸öÀàÖ»¿ÉÒԼ̳ÐÒ»¸ö¸¸À࣬µ«Ò»¸ö¸¸ÀàÈ´¿ÉÒÔ±»¶à¸ö×ÓÀàËù¼Ì³Ð¡£
´Ó×ÓÀàµÄ½Ç¶È¿´£¬Ëü“ ¼ ......
³éÏóÀàµÄÓ¦ÓþÍÊǵäÐ͵ÄÄ£°æÄ£Ê½£¬ÏÈÉùÃ÷Ò»¸ö²»Äܱ»ÊµÀý»¯µÄÄ£°æ£¬ÔÚ×ÓÀàÖÐÈ¥ÒÀÕÕÄ£°æÊµÏÖ¾ßÌåµÄÓ¦Óá£
Ä£°æÄ£Ê½ÊµÀý
ÎÒÃÇдÕâÑùÒ»¸öÓ¦Óãº
ÒøÐмÆËãÀûÏ¢£¬¶¼ÊÇÀûÂʳËÒÔ±¾½ðºÍ´æ¿îʱ¼ä£¬µ«¸÷ÖÖ´æ¿î·½Ê½¼ÆËãÀûÂʵķ½Ê½²»Í¬£¬ËùÒÔ£¬ÔÚÕË»§Õâ¸öÀàµÄÏà¹Ø·½·¨Àֻ´î³öËã·¨µÄ¹Ç¼Ü£¬µ«²»¾ßÌåʵÏÖ¡£¾ßÌåʵÏÖÓɸ÷¸ö×ÓÀàÀ´Íê³É¡ ......
ÀàʵÏÖ½Ó¿ÚҪʹÓà implements ¡£ÀàʵÏÖ½Ó¿ÚҪʵÏÖÆäÖеijéÏó·½·¨¡£Ò»¸öÀà¿ÉÒÔʵÏÖ¶à¸ö½Ó¿Ú¡£
Ò»¸öÀà¿ÉÒÔʹÓà implements ʵÏÖ½Ó¿Ú£¬ÉõÖÁ¿ÉÒÔʵÏÖ¶à¸ö½Ó¿Ú¡£
´ó²¿·ÖµÄÊé˵£¬ÕâÑùÊÇΪÁËʵÏÖPHPµÄ¶à¼Ì³Ð¡£ÎªÊ²Ã´ÄØ£¿
PHP5Êǵ¥¼Ì³ÐµÄ£¬Ò»¸öÀàÖ»¿ÉÒԼ̳Ð×ÔÒ»¸ö¸¸Àà¡£½Ó¿Ú¿ÉÒÔʵÏÖ¶à¸ö£¬ÕâÑù¾ÍÊǶà¼Ì³ÐÁË¡£
ÕâÑù˵ÓÐЩµÀÀí¡£ ......