×îÐÂÎÄÕÂ
¡¤¼òµ¥µÄÒ³Ãæ»º³å¼¼Êõ£¨...
¡¤UltraEdit Ö§³ÖphpÎÄ...
¡¤PHP¸ßÊÖ֮·
¡¤ÓÃphp+oracleʵÏÖ·ÖÒ³...
¡¤ÓÃsession×ö¿Í»§ÑéÖ¤...
¡¤Ä¿Â¼±éÀúº¯Êý
¡¤Í¨¹ýUNIXÔ´Âë±àÒë°²×°...
¡¤Ê¹Óà php 4 ¼ÓËÙ web ...
¡¤³õʶPEAR
¡¤PHP±à³ÌÍøÉÏ×ÊÔ´µ¼º½
¡¤Õâ¸öÊÇÎÒÒÔǰ×öµÄרÃÅ...
¡¤¼òµ¥µÄÒ³Ãæ»º³å¼¼Êõ£¨...
Ïà¹ØÎÄÕÂ
¡¤PHPÉú³É±ãÓÚ´òÓ¡µÄÍø...
¡¤Ò»¸öORACLE·ÖÒ³³ÌÐò
¡¤PHPº¯ÊýË÷Òý£¨3£©
¡¤¿´¿´PHPÈçºÎµÃµ½Íø¿¨...
¡¤½«PHP×÷ΪShell½Å±¾Óï...
¡¤window.open()µÄËùÓÐ...
¡¤ÓÃPHPº¯Êý½â¾öSQL inj...
¡¤ÎÒ²»ÖªµÀÓÐûÓÐÈË·¢×ª...
¡¤¹ØÓÚAPACHEµÄÅäÖÃÎļþ...
¡¤°æmysql+apache+php i...
¡¤Ê®Ììѧ»áphpÖ®µÚ¾ÅÌì
¡¤ÏÔʾ¸ñʽ»¯µÄÓû§ÊäÈë...
ÍÆ¼öÎÄÕÂ
¡¤Ò»¸ö³ÌÐòÔ±µÄÒ»Éú
¡¤ÓÃPHPʵÏÖWEB¶¯Ì¬ÍøÒ³...
¡¤Ä£Äâ OICQ µÄʵÏÖ˼·...
¡¤PHP ºÍ XML: ʹÓÃexpa...
¡¤PHP½Ì³Ì.Ó¦ÓÃʵÀý6
¡¤´Óftp·þÎñÆ÷ÉÏÏÂÔØÎÄ...
¡¤Ï¸¿´PEARµÄ´íÎó´¦Àí
¡¤³¬Ô½Ä£°åÒýÇæ
¡¤ÓÃPHP3×÷Ê÷ÐÍĿ¼(2)
¡¤PHP³£¼ûÎÊÌâ
¡¤Óʼþ·¢ËÍ»¹ÓÐÎÊÌâÂð£¿...
¡¤ÕÒÁËÒ»¸öÖÐÎÄת»¯UNIC...
  ÄúÏÖÔÚµÄλÖ㺠ÐÝÏоӠ>> ÍøÂçѧԺ >> ÍøÂç±à³Ì >> PHP >> 

ÅäÖÃ×îеÄPHP¼ÓMYSQL·þÎñÆ÷
  ÈËÆø£º ¡¾×ÖÌ壺´ó ÖРС¡¿
  ·¢²¼Ê±¼ä£º2004-12-28 23:14:46

ͨ¹ýÒ»¸öСʱµÄÑо¿ºÍÉèÖÃ.ʵÏÖÁË×îÐ嵀 PHP 5.0 + MYSQL 5.0 + WIN2003.
¸öÈËÈÏΪ»¹ÊÇÓбØÒªÐ´¸ö½Ì³Ì³öÀ´.ÒòΪºÜ¶à·½ÃæºÍÀϰ汾µÄ²»¾¡Ïàͬ.
˵ʵ»°×Ô¼ºÒ²ÊDzéÔÄÁ˺ܶà¹Ù·½Îĵµ²Å½â¾öÁ˺ܶà¹ÖÒìÎÊÌâ.
ÐÝ ÏÐ ¾Ó ±à ¼­
=========================

Ïà¹ØÈí¼þ¾ù¿ÉÒÔÔÚ WWW.SKYCN.NET ÏÂÔØ.

MYSQL 5.0 FOR WINDOWS
PHP 5.0 FOR WINDOWS
PHPMYADMIN
WINDOWS SERVER 2003

=========================

Ê×ÏȰ²×° MYSQL .±¾À´ÒÔΪа汾µÄ°²×°½çÃæÓ¦¸Ã»á»¨ÉÚµã.
µ«ÊÇÈÔȻֻ¿´µ½ÀÏÍÁµÄº£ëà.³ýÁ˰²×°Ê±¼ä±È 4.0 ³¤.µ±È»¿©.ÒòΪ 5.0 ±È 4.0 Ìå»ý´óºÜ¶à.

ÍÆ¼ö°²×°ÔÚ¶ÀÁ¢µÄ NTFS ·ÖÇøÉÏ.±ÈÈçÎÒ·þÎñÆ÷µÄ FÅÌ.Ö»·Å·þÎñÆ÷Èí¼þ.
·¾¶Îª: F:MYSQL

È»ºó½øÈë F:MYSQLBIN Êó±êË«µã winmysqladmin.exe
Ê×´ÎÔËÐлáÌáʾÊäÈ볬¼¶Óû§ºÍÃÜÂë.¾ÍÊäÈë root ÃÜÂë root
×¢Òâ°¡.Èç¹ûÊǶÔÍâ·þÎñÆ÷ÇëÉèÖ󬼶¸´ÔÓ.±ÈÈç Wjwsfjn29szjwh~mysql
·­Òë¹ýÀ´¾ÍÊÇ: ÎÒ½ÐÎºÊæ·Ò.½ñÄê29ËêÖÁ½ñδ»é.

µ½ÕâÀï.MYSQL¾Í°²×°Íê±ÏÁË.Èç¹û²»Ã÷°×Çë²Î¿´Éî¿ÕͬѧµÄÏà¹ØÎÄÕÂ.

=========================

ÏÂÃæ°²×° PHP 5.0 Æäʵûʲô°²×°²»°²×°µÄ.½âѹËõÎļþ.ÍÆ¼ö·Åµ½
·¾¶Îª: F:PHP

µ½ÕâÀï¾ÍÓ¦¸Ã½øÈë¹Ø¼ü²½ÖèÁË.
Ê×Ïȸ´ÖÆ PHP Ŀ¼Ï嵀 Php.ini-dist µ½ C:Windows ²¢½«ÎļþÃûÐ޸ijÉΪ Php.ini

COPY F:PHPPhp.ini-dist C:Windows
Ren Php.ini-dist Php.ini

Èç¹ûÊÇ WINDOWS 2000 ¾ÍÊÇ: C:WINNT
Èç¹ûÊÇ WIN9X / 2003 ¾ÍÊÇ: C:Windows

È»ºó¸´ÖÆ PHP Ŀ¼Ï DLLS Ŀ¼ÀïµÄËùÓÐÎļþµ½ SYSTEM32 Ŀ¼.

COPY F:PHPdlls*.* C:WindowsSystem32

Èç¹ûÊÇ WINDOWS 2000 ¾ÍÊÇ: C:WINNTSystem32
Èç¹ûÊÇ WIN9X / 2003 ¾ÍÊÇ: C:WindowsSystem32

¼ÌÐø.¸´ÖÆPHPĿ¼Ï php4ts.dll Îļþµ½ System32 Ŀ¼Àï.

COPY F:PHPphp4ts.dll C:WindowsSystem32

=========================

µ½ÕâÀï¸´ÖÆ¹¤×÷È«²¿Íê³É.ÏÂÃæÐÞ¸Ä C:WindowsPhp.ini Îļþ.

Çë×¢Òâ.5.0µÄ°æ±¾ÐÞ¸ÄÓë4.0²¢²»ÍêÈ«Ïàͬ.ÐèҪעÒâµÄÈçÏÂ.

²éÕÒ extension_dir ×Ö´®.ÐÞ¸ÄΪÄã PHP Ŀ¼Àï extensions µÄ·¾¶.

; Directory in which the loadable extensions (modules) reside.
extension_dir = F:PHPextensions

Ïà¹Ø¹Ù·½¼¼Êõ×ÊÁÏ:

Edit your php.ini file:

You will need to change the 'extension_dir' setting to
point to your php-install-dir, or where you have placed
your 'php_*.dll' files. ex: c:php

If you are using OmniHTTPd, do not follow the next step.
Set the 'doc_root' to point to your webservers
document_root. ex: c:apachehtdocs or c:webroot

Choose which extensions you would like to load when PHP
starts, noting that several extensions are already built
into the Windows release, see the section about
Windows extensions for details of the built-in extensions.
You can uncomment the: 'extension=php_*.dll' lines
in php.ini to load these extensions.

Note that on a new installation it is advisable to first get
PHP working and tested without any extensions before enabling
them in php.ini.

On PWS and IIS, you can set the browscap.ini
to point to: 'c:windowssysteminetsrvrowscap.ini' on
Windows 9x/Me and 'c:winntsystem32inetsrvrowscap.ini'
on NT/2000/XP Server.

More information on the capabilities of browscap can be found here:

www.php.net/manual/en/function.get-browser.php

Note that the mibs directory supplied with the Windows distribution
contains support files for SNMP. This directory should be moved to
DRIVE:usrmibs (DRIVE being the drive where PHP is installed.)

È»ºóÓë PHP 4.0 ²»Í¬µÄÊÇ.ÐèÒªÐÞ¸Ä Php.ini ÎļþÀïµÄÈçÏÂÄÚÈÝ:
²éÕÒ cgi.force_redirect ×Ö´®.ĬÈÏֵΪ1.½«ÆäÐÞ¸ÄΪ0.²¢È¡ÏûÇ°ÃæµÄ;ºÅ.

¼´:

; cgi.force_redirect is necessary to provide security running PHP as a CGI under
; most web servers. Left undefined, PHP turns this on by default. You can
; turn it off here AT YOUR OWN RISK
; **You CAN safely turn this off for IIS, in fact, you MUST.**
cgi.force_redirect = 0

ÇмÇÈçÉÏÐ޸ĵĵط½.·ñÔòPHP 5.0ÊÇÎÞ·¨ÔËÐеÄ.»áÓÐÈçÏÂÌáʾ.

Security Alert! The PHP CGI cannot be accessed directly.

Ïà¹Ø¹Ù·½¼¼Êõ×ÊÁÏ:

!NOTE!: Since 4.1.2, the php.ini setting cgi.force_redirect defaults to '1'
which effectively prevents the cgi from working within IIS. You need to set
up at least a minimal php.ini file with the following directive:

cgi.force_redirect = 0

If it doesn't work immidiately, make sure you have the php.ini file in the
right place (%SYSTEMROOT%php.ini).

½ÓÏÂÀ´ÐÞ¸Ä Php.ini Îļþ¹ØÓÚ MYSQL 5.0 µÄÉèÖÃ.

²éÕÒ [MySQL] ×Ö¶ÎÄÚµÄÄÚÈÝ.ÐÞ¸ÄÈçÏÂ.

mysql.default_port = 3306
// ÕâÀïÊÇMYSQLµÄ¶Ë¿Ú.

mysql.default_host = localhost
// ÕâÀïÊDZ¾µØÖ÷»ú.

mysql.default_user = root
// ÕâÀïÊÇÓû§

mysql.default_password = Wjwsfjn29szjwh~mysql
// ÕâÀïÊÇÃÜÂë

Ð޸ĵ½ÕâÀï¾Í¿ÉÒÔÈà Php Óë MYSQL ¹ØÁªÁË.
×îºóÆô¶¯ PHP ¶Ô MYSQL Ä£¿éÖ§³Ö.

²éÕÒ extension=php_mysql.dll ×Ö´®.ɾ³ýµôÇ°ÃæµÄ ; ºÅ

extension=php_mysql.dll

Çë×¢Òâ.Èç¹û²»Æô¶¯ PHP ¶Ô MYSQL Ä£¿éÖ§³Ö.½«ÎÞ·¨Ê¹ PHPMYADMIN Õý³£¹¤×÷.½«Ìáʾ:

cannot load MySQL extension, please check PHP Configuration
ÎÞ·¨×°Èë MySQL À©Õ¹£¬Çë¼ì²é PHP µÄÅäÖá£

Ïà¹Ø¹Ù·½¼¼Êõ×ÊÁÏ:

To connect to a MySQL server, PHP needs a set of MySQL functions called "MySQL extension".
This extension may be part of the PHP distribution (compiled-in), otherwise it needs to be loaded dynamically.
Its name is probably mysql.so or php_mysql.dll. phpMyAdmin tried to load the extension but failed.

=========================

µ½ÕâÀïÓ¦¸Ã¾ÍûÓкܴóÎÊÌâÁË.Èç¹ûÓÐÅäÖûù´¡µÄÅóÓÑÓ¦¸ÃÍêÈ«¿ÉÒÔÀí½âÁË.
±¾ÈËÔÚʵ¼ÊÅäÖõÄʱºòÒ²Óöµ½Á˺ܶàÎÊÌâ.×îºó¶¼ÊÇÄÍÐIJéѯ¹Ù·½ÎĵµµÃµ½Á˽â¾ö.

¡Ô ²é¿´¡¢·¢±íÆÀÂÛ ¡Ô