ÀûÓÃphp»ñÈ¡Êý¾Ý¿âÖÐËùÓÐÐÅÏ¢¿É²Î¿¼phpMyAdmin
<?php
@mysql_connect("localhost", "root","1981427") //Ñ¡ÔñÊý¾Ý¿â֮ǰÐèÒªÏÈÁ¬½ÓÊý¾Ý¿â·þÎñÆ÷
or die("Êý¾Ý¿â·þÎñÆ÷Á¬½Óʧ°Ü");
$dbs = mysql_list_dbs(); //µ÷ÓÃmysql_list_dbsº¯Êý
while ($array = mysql_fetch_row($dbs)) //Ñ»·Êä³öËùÓеÄÊý¾Ý¿âÃû³Æ
{
echo "$array[0]<BR>";
}
?>
<?php
@mysql_connect("localhost", "root","1981427") //Ñ¡ÔñÊý¾Ý¿â֮ǰÐèÒªÏÈÁ¬½ÓÊý¾Ý¿â·þÎñÆ÷
or die("Êý¾Ý¿â·þÎñÆ÷Á¬½Óʧ°Ü");
$dbs = mysql_list_tables("test"); //µ÷ÓÃmysql_list_tablesº¯Êý
while ($array = mysql_fetch_row($dbs)) //Ñ»·Êä³öËùÓеıíÃû³Æ
{
echo "$array[0]<BR>";
}
?>
<?php
mysql_connect("localhost","root","1981427"); //Á¬½Ó·þÎñÆ÷
mysql_select_db("test"); //Ñ¡ÔñÊý¾Ý¿â
$result = mysql_query("SELECT * from tablename1"); //Ö´Ðвéѯ²Ù×÷
echo mysql_num_fields($result); //»ñÈ¡ÁеÄÊýÄ¿
?>
<?php
mysql_connect("localhost","root","1981427");
mysql_select_db("test");
$result = mysql_query("SELECT * from tablename1");
echo mysql_field_name($result,0); //»ñÈ¡ÁеÄÃû³Æ
?>
<?php
mysql_connect("localhost","root","1981427");
mysql_select_db("test");
$result = mysql_query("SELECT * from tablename1");
echo mysql_field_type($result,0); //»ñÈ¡ÁеÄÊý¾ÝÀàÐÍ
?>
<?php
mysql_connect("localhost","root","1981427");
mysql_select_db("test");
$result = mysql_query("SELECT * from tablename1");
echo mysql_field_len($result,0); //»ñÈ¡Áеij¤¶È
?>
<?php
mysql_connect("localhost","root","1981427");
mysql_select_db("test");
$result = mysql_query("SELECT * from tablename1");
echo mysql_field_flag($result,0); //»ñÈ¡ÁеıêÖ¾
?>
<?php
mysql_connect("localhost","root","1981427"); //Á¬½Ó·þÎñÆ÷
mysql_select_db("test"); //Ñ¡ÔñÊý¾Ý¿â
echo "<table border='1'>"; //Êä³ö±íÍ·
echo "<tr><th>ÁÐÃû</th><th>ÀàÐÍ</th><th>³¤¶È</th><th>±êÖ¾</th>";
$result = mysql_query("SELECT * from tablename1"); //ÔÚmytable±íÉÏÖ´ÐÐSQLÓï¾ä
$fields = mys
Ïà¹ØÎĵµ£º
ÔÚÍùPHP SessionÀïÃæ±£´æÐÅϢ֮ǰ£¬ÐèÒªÊ×ÏÈʹÓÃsession_start()º¯ÊýÀ´Æô¶¯session,
Õâ¸öº¯Êý±ØÐëÔÚ<html>±êǩ֮ǰµ÷ÓᣴúÂëÈçÏ£º
<?php session_start(); ?>
<html>
<body>
</body>
</html>
ÔÚSessionÆô¶¯ÒԺ󣬿ÉÒÔʹÓÃPHP $_SESSION±äÁ¿À´»ñÈ¡ºÍÉèÖÃsession±äÁ¿£¬ÊµÀý´ú ......
ÕûÀíһƪ±È½ÏÏêϸµÄwindowsÏÂphpÔËÐл·¾³µÄÅäÖõÄ×ÊÁÏ£¬°üÀ¨apacheµÄ°²×°¡¢mysqlµÄ°²×°¡¢phpµÄ°²×°¡¢ ZendOptimizer µÄ°²×°¡¢phpMyAdminµÄ°²×°£¬°üÀ¨°²×°¹ý³Ì»á³öÏÖµÄÎÊÌâµÄ½â¾ö£¬±ÈÈ磺phpMyAdminÊý¾Ý¿âÖÐÎÄÂÒÂëµÄ½â¾öµÈ¡£
//****************
1¡¢Èí¼þ
(1)apache_2.2.4-win32-x86-no_ssl.zip
(2)mysql-5.0.27-win32.zi ......
ÓÉÓÚ×î½üÔÚÓëSPºÏ×÷,¿ª·¢ÊÖ»úÒµÎñÏÂÔØ,Êý¾ÝÌá½»²ÉÓÃPOST·½Ê½Ìá½»,ÏÖÓë´ó¼Ò·Öºà±È½Ï³ÉÊìÀà.
function uc_api_post($url, $action, $sendmsg='') {
$postdata = "corpMsg=$sendmsg";
return uc_fopen(UC_URL, 500000, $postdata, '', TRUE, UC_IP, 20);
}
function uc_fopen($url, $limit = 0, $post = '', $cookie = ......
×î½ü£¬ÓÐÐí¶àÅóÓÑÎÊÎÒÔÚWindowsXpÏÂPHPµÄ°²×°¹ý³Ì£¬ÕýºÃ×î½üÎÒÔÚ×Ô¼ºµÄ»úÆ÷Éϳɹ¦µÄÒÔÄ£¿é»¯µÄ·½Ê½°²×°ÁËPHP4.23¡£¼ÈÈ»Õâô¶àÅóÓÑÐèÒª£¬ÎÒ¾ÍÒÔ×î³£¼ûµÄIISºÍApache·þÎñÆ÷ΪÀý£¬°ÑPHPÔÚWindowsXPϵݲװ¹ý³Ìд³öÀ´°É£¬Ï£ÍûÄܶÔÒª°²×°PHPµÄÅóÓÑÓеã°ïÖú¡£Èç¹û²»¼ÓÌØÊâ˵Ã÷£¬ÒÔϵĽéÉÜͬʱҲÊÊÓÃÓÚWin2000°æ±¾¡£
Ò»¡¢¸ÅÊö£ ......
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Ð ......