PHPѧϰ
ǰ¼¸ÌìÔÚѧϰPHPµÄʱºò×öÁËÒ»¸ö¼òµ¥µÄÊý¾ÝÔöɾ¸ÄµÄ³ÌÐò£¬ÓÉÓÚ×Ô¼ºÊǵÚÒ»´Î½Ó´¥PHPËùÒÔÔÚÐí¶àµØ·½×öµÄ²»µ½Î»£¬¸Ð¾õºÜǣǿ£¬µ«ÊDZϾ¹ÊÇ»¨ÁËʱ¼äµÄ£¬ËùÒÔÏÖÔÚÌù³öÀ´¡£
1.Íê³ÉÔöɾ²é¸ÄµÄÖ÷Ò³Ãæ£ºconnsql.php
<h1>Data Insert Delete Update</h1>
<?php
//»ñµÃÊý¾Ý¿âÁ¬½Ó
require("connectionDB.php");
// ´Ó±íÖÐÌáÈ¡ÐÅÏ¢µÄsqlÓï¾ä
$strsql="select * from personal_info";
// Ö´ÐÐsql²éѯ
$result=mysql_db_query($mysql_database, $strsql, $conn);
// »ñÈ¡²éѯ½á¹û
$row=mysql_fetch_row($result);
echo '<font face="verdana">';
echo '<table border="1" cellpadding="1" cellspacing="2">';
// ÏÔʾ×Ö¶ÎÃû³Æ
echo "\n<tr>\n";
for ($i=0; $i<mysql_num_fields($result); $i++)
{
echo '<td bgcolor="#EEFFFF"><b>'.
mysql_field_name($result, $i);
echo "</b></td>\n";
}
//ɾ³ý
echo '<td bgcolor="#EEFFFF">';
echo "delete";
echo '</td>';
//ÐÞ¸Ä
echo '<td bgcolor="#EEFFFF">';
echo "update";
echo '</td>';
echo "</tr>\n";
// ¶¨Î»µ½µÚÒ»Ìõ¼Ç¼
mysql_data_seek($result, 0);
// Ñ»·È¡³ö¼Ç¼
while ($row=mysql_fetch_row($result))
{
echo "<tr>\n";
for ($i=0; $i<mysql_num_fields($result); $i++ )
{
Ïà¹ØÎĵµ£º
1¡¢Ê¹Óþø¶Ô·¾¶°üº¬Îļþ
ÔÚÿ´Î¶ÔÎļþµÄ°üº¬ÖУ¬¶¼Ê¹ÓÃϵͳ¾ø¶Ô·¾¶½øÐаüº¬£¬±ÈÈç require('/var/www/html/inc/test.inc')£»µÄ·½Ê½£¬ÔÚËùÓÐÎļþÖж¼ÕâÑù°üº¬¾Í¿ÉÒÔ±ÜÃâ¶à¼¶°üº¬³öÏÖµÄÎÊÌ⣬µ«ÊÇÕâÖз½Ê½²»Áé»î£¬ÏµÍ³¿ÉÒÆÖ²ÐÔ¼«²î£¬½¨Òé²»²ÉÓá£
2¡¢ÔÚÒ»¸ö¹«ÓÃÎļþÖж¨Ò幫ÓÃÎļþµÄÁÐ±í£¬½«¸÷¸ö¹«ÓÃÎļþµÄ ......
ÓÅÐãµÄPHP´úÂëÓ¦¸ÃÊǽṹ»¯µÄ¡£´ó¶ÎµÄ´úÂëÓ¦¸Ã±»·Ö¸îÕûÀí³ÉÒ»¸ö¸öº¯Êý»ò·½·¨£¬¶øÄÇЩ²»ÆðÑÛµÄС¶Î´úÂëÔòÓ¦¸Ã¼ÓÉÏ×¢ÊÍ£¬ÒÔ±ãÈÕºóÇå³þËüÃǵÄÓÃ;¡£
¶øÇÒÓ¦¸Ã¾¡¿ÉÄܵذÑǰ̨´úÂëÈçHTML¡¢CSS¡¢JavascriptµÈ´Ó³ÌÐòÖзÖÀë³öÀ´¡£PHPµÄÃæÏò¶ÔÏó±à³ÌÌØÐÔ¿ÉÒԺܺõذïÖú³ÌÐòÔ±½«´úÂëÕûÀíÓÐ
Ðò¡£
&n ......
php°²×°
# tar xzvf php-5.2.5.tar.gz
# cd php-5.2.5
./configure --prefix=/home/redadmin/php --with-apxs2=/home/redadmin/apache/bin/apxs --with-mysql=/home/redadmin/mysql --enable-mbstring=all --enable-track-vars
# make && make install
# cp php.ini-dist /home/redadmin/php/lib/php.ini
# c ......
¿ªÔ´½¨Õ¾³ÌÐòÈñà³Ì¸ßÊÖºÍÖ»¶®´ò×ÖÉÏÍøµÄÈ˶¼¿ÉÒÔ¿ìËÙ½¨Á¢Ò»¸ö¹¦ÄÜÇ¿´ó¡¢½çÃæÆ¯ÁÁµÄÍøÕ¾¡£²»¹ÜÄãÊÇÏ뽨һ¸ö²©¿Í¡¢ÂÛ̳¡¢CMS¡¢µç×ÓÉÌÎñÍøÕ¾£¬»òÊÇWiki¡¢Ïà²á¹ÜÀí¡¢RSS¾ÛºÏºÍÀàDiggÍøÕ¾¡£Äã¶¼¿ÉÒÔͨ¹ýÕâЩ½¨Õ¾¹¤¾ß¿ìËÙ½¨Á¢¡£
ÎÒÃÇ֮ǰ½éÉܹý23¸ö¿ªÔ´µÄCMS¹ÜÀíϵͳ£¬ÏÖÔÚÔòÈÃÎÒÃÇÀ´¿´Ò»ÏÂ26¿î¿ªÔ´½¨Õ¾³ÌÐò¡£
......