ÓйØphpǰ;¶þ
¹ØÓÚPHPµÄǰ;£¨¶þ£© £¨À´×Ô±¾Õ¾µÄÏûÏ¢£©
3.2ÔÚWindows 95/98/NT/2000ÉÏ¿ìËÙ°²×°Apache Web·þÎñÆ÷£¨10ÃëÖÓ£©
ÔÚWindowsÉÏÔËÐÐPHP£¬ÄãÐèÒªÒ»¸öWeb·þÎñÆ÷£¬Äã¿ÉÒÔʹÓÃ΢ÈíµÄIIS£¬Ò²¿ÉÒÔʹÓÃÃâ·ÑµÄApache ¡£ÒòΪ¿ÉÒÔͨ¹ýApacheµÄ°²×°Îļþsetup.exe½øÐа²×°£¬¿ÉÒÔΪÄã½ÚÊ¡Ðí¶àʱ¼ä¡£
PHPTtriadÊÇÒ»¸ö°üÀ¨Apache¡¢PHP¡¢MySQLµÄÈí¼þ°ü£¬¿É´Óhttp://www.phpgeek.com/phptriad.php »òÆä¾µÏñÕ¾µãhttp://sourceforge.net/projects/phptriadÏÂÔØ¡£ÎÒÇ¿ÁÒÍƼöʹÓÃPHPTtriad£¬ËüÔÚWindowsÓû§Öм«ÊÜ»¶Ó£¨Òѱ»ÏÂÔØÁ˼¸°ÙÍò´Î£©¡£
Apache ¶þ½øÖƳÌÐò£º http://httpd.apache.org/dist/httpd/binaries/win32
3.3 ΢ÈíµÄSQL·þÎñÆ÷
SQL·þÎñÆ÷¿ÉÒÔ°²×°ÔÚ²»ÐèÒªÔËÐÐWindowsµÄ»úÆ÷ÉÏ£¬¶øÄãÒ²ÐèÒªÒ»¸öSQL·þÎñÆ÷À´×÷Web¿ª·¢¡£ÎÒÍƼöÄãÔÚºÜÀϵÄPCÉÏ£¨ÈçPentium»ò486£©°²×°Redhat LinuxºÍPostgreSQL RPMs¡£ÄãÊý¾Ý¿â²¢²»ÐèÒªÈκÎWindowsͼÐνçÃ棬¿ÉÒÔÔÚ¿ØÖÆֱ̨½ÓÆô¶¯PostgreSQL¡£PostgreSQLµÄËٶȴó¸ÅÊÇOracleºÍMS SQL serverµÄ3±¶¡£
PHPµÄPostgreSQLÖ§³Ö¿âÊÇÓÉAdam Sussman±àдµÄ£¬ËûµÄÓʼþµØÖ·ÊÇ£ºasussman@vidya.com
Ö§³ÖWindows NT/2000µÄPostgreSQL¿É´Óhttp://www.askesis.nlÏÂÔØ¡£¿É´Óhttp://www.geocities.com/alavoor ... stgreSQL-HOWTO.html»ñÈ¡PostgreSQLµÄʹÓÃÖ¸ÄÏ ¡£
3.4 PHPÔÚUNIXºÍÆäËü²Ù×÷ϵͳÉϵݲװ
²Î¼ûPHPÖ÷Õ¾µãwww.php.netÉϵݲװָÄϺÍ˵Ã÷£¬»òËùÏÂÔصÄÈí¼þ°üÖеÄINSTALLÎļþ¡£
4.¿ìËÙ½ø½×
ÓÃPHPµÄÃæÏò¶ÔÏó»úÖÆʵÏÖÒ»¸öÏîÄ¿µÄ²½ÖèÈçÏ£º
·Ê×ÏÈ£¬ÄãÐèÒªÁ¬½ÓÒ»¸öÊý¾Ý¿âSQL·þÎñÆ÷——ÓÐÏÂÃæÁ½¸öÑ¡Ôñ£º
ADODB (Active Data Objects Data Base)£¬¼´¶¯Ì¬Êý¾Ý¶ÔÏóÊý¾Ý¿â£¨http://php.weblogs.com/adodb£©
Metabase(Database independent access and management),¼´Êý¾Ý¿â¶ÀÁ¢·ÃÎʺ͹ÜÀí£¨
http://phpclasses.upperdesign.com/browse.htm/package/20£©
·µÚ¶þ£¬ÄãÐèҪһЩͨÓõÄPHPÀàÀ´´´½¨±íµ¥¡¢±í¸ñºÍÆäËüHTML¶ÔÏó¡£ÕâЩ¶¼¿ÉÒÔ´ÓPHP classesÍøÕ¾ÉÏ»ñÈ¡£¨http://phpclasses.upperdesign.com£©¡£¿ÉÒԲο¼Ò»Ï¸ÃÍøÕ¾µÄÏÂÔØÅÅÐаñ¡£Ò²¿ÉÒÔ´ÓÍøÕ¾http://www.milkywaygalaxy.freeservers.com/ÉÏ»ñÈ¡±íµ¥Àࡢģ°åÀàµÈ¡£
·µÚÈý£¬Í¨¹ý¶ÔÕâЩͨÓÃÀàµÄ¼Ì³Ð£¬À´Éè¼ÆºÍ´´½¨×Ô¼ºµÄPHPÀà¡£
·µÚËÄ£¬Ê¹ÓÃÄ£°åÀàÀ´·ÖÀëÏÔʾÑùʽºÍÒµÎñÂß¼£¬¿É²Î¼ûhttp://www.phpclasses.com
·µÚÎ壬ʹÓÃIDE¹¤
Ïà¹ØÎĵµ£º
1¡¢mysql_connect()-½¨Á¢Êý¾Ý¿âÁ¬½Ó
¸ñʽ£º
resource mysql_connect([string hostname [:port] [:/path/to/socket] [, string username] [, string password]])
Àý£º
$conn = @mysql_connect(”localhost”, “username”, “password”) or dir(”²»ÄÜÁ¬½Óµ½Mysql Server” ......
˼·:SQLÀᄀ¿ÉÄܵIJÉÓÃÁ½¸öÒýºÅ±ÕºÏ±äÁ¿;¶Ô±äÁ¿ÖеÄÒýºÅתÒå;¶Ô²»ÄܲÉÓÃ2¸öÒýºÅ±ÕºÏµÄ±äÁ¿,ÏÈÔ¤ÏÈÅжϱäÁ¿ÀàÐÍ;
·½°¸:
1 ËùÓзÇÊýÖµÔËËã(Èç×Ö·û,¼òµ¥ÊýÖµÐ͵ȵÈ)µÄSQL±äÁ¿¶¼¼ÓÒýºÅ;
2 ËùÓзÇÊýÖµÔËËãµÄSQL±äÁ¿µÄÖµ¶¼²ÉÓÃmagic_quotes_gpc» ......
×Ö·û´®µÄ²Ù×÷ÔÚPHP±à³ÌÖÐÕ¼ÓÐÖØÒªµÄµØ룬¼¸ºõËùÓÐPHP½Å±¾µÄÊäÈëºÍÊä³ö¶¼Óõ½×Ö·û´®¡£ÓÈÆäÔÚPHPÏîÄ¿¿ª·¢¹ý³ÌÖУ¬ÎªÁËʵÏÖijÏÄÜ£¬¾©³ÇÐèÒª¶ÔijЩ×Ö·û´®½øÐÐÌØÊâ´¦Àí£¬Èç»ñÈ¡×Ö·û´®µÄ³¤¶È¡¢½ØÈ¡×Ö·û´®¡¢Ìæ»»×Ö·û´®µÈ¡£ËùÒÔÕâÒ²ÊÇÎÒÃǽñÌì¿Î³ÌµÄÖ÷ÒªÄÚÈÝ£¬Ï£ÍûѧԱ¿ÉÒÔÈÏÕæѧϰ£¬ÇÚ¼ÓÁ·Ï°¡£
8.3.1 È¥³ý×Ö·û´®Ê×λ¿Õ¸ñºÍÌØÊ ......
²»Öª²»¾õ£¬5Ô¹ýÁË´ó°ëÁË£¬Ïë±£³Öÿ¸öÔÂÖÁÉÙ¸ø Blog Ìí¼ÓһЩÐÂÏʵÄÎÄÕ£¬Ò²Ëæ±ã¸ø×Ô¼ºµÄ career ¹ì¼£×öÒ»¸ö¼Ç¼£¬ÓÚÊÇÌá±Ê£¬ºÇºÇ~ ½ñÌìÒª½éÉÜÒ»ÏÂʯͷ×îеÄ×÷Æ· Hush Framework£¬Õâ¸ö¿ò¼ÜÊÇÎÒÕâÁ½¸öÔµÄÐÄѪ֮×÷£¬±¾ÈË»¹ÊDZȽÏÂúÒâµÄ£¬ÒÔÏ»á¸ø´ó¼Ò½éÉÜһЩÕâ¸ö¶«¶«µÄÁÁµã¡£Õâ¸ö×÷Æ·µÄ±¾ÒâÊÇΪ¹«Ë¾ÈÕºóµÄÓ¦Óÿª·¢Ìṩһ¸ö ......
×î½üÒ»Ö±ÔÚÑо¿freeBSDÏÂnginx+php+mysqlµÄ°²×°£¬¿´Á˺ܶàÍøÉϵÄ×ÊÁÏÊÕ»ñ²»Ð¡£¬²»¹ý´ó²¿·Ö¶¼ÊDZàÒë°²×°£¬Ïà¶Ô³õѧÕßÀ´Ëµ±È½Ï¸´ÔÓ£¬²»ÈÝÒ×Àí½â£¬ËùÒÔÎÒÕûºÏÁËһЩports°²×°µÄ×ÊÁÏ£¬¶¼ÊǾ¹ý×Ô¼ºÑéÖ¤ºóµÄ£¬°²×°³É¹¦Ò²±È½ÏÈÝÒ×Àí½â£¬ÏÂÃæÊÇÁ½Öֳɹ¦µÄ°¸Àý£¬ÆäÖÐÓÐÒ»¸öÊÇApache´úÌænginxµÄ°²×°£¬Ï£Íû¶Ô´ó¼ÒÓÐËù°ïÖú¡£
° ......