Apache2.2 php5.2 mysql ÅäÖ÷½·¨¡¾¼ò¡¿
Apache
PHP
MySQL
°´ÕÕͨ³£µÄ·½·¨£¨¿ÉÒÔÔÚÍøÉϺÜÈÝÒ×ËÑË÷µ½£©È«²¿°²×°Íê³Éºó£¬
1£¬ÐÞÕýhttpd.conf
¿É°´ÕÕÍøÂçÉÏ¿ÉËÑË÷µ½µÄapache°²×°½Ì³ÌÐ޸ľßÌåÄÚÈÝ¡£ÕâÒ»²½Ö÷ÒªÊÇÅäÖÃapache±¾ÉíµÄ²ÎÊý¡£
2£¬¼ÓÈëÖ§³Öphp5ºÍmysqlµÄ´úÂëµ½httpd.conf
LoadFile G:/server/php5/libmysql.dll
LoadModule php5_module G:/server/php5/php5apache2_2.dll
PHPIniDir "G:/server/php5"
AddType application/x-httpd-php .php
LoadFileÐÐÓÃÀ´Ö§³Ömysql£¬Ï±ß3ÐÐÓÃÀ´Ö§³Öphp5.2¡£¾ßÌå·¾¶×ÔÐÐÐÞÕý¡£Èç¹û²»ÐèÖ§³Ömysql£¬ÔòloadfileÐпÉÒÔ²»¼Ó¡£
3£¬ÐÞÕý php.ini £¨Ê¹ÓÃphp.ini-dist »òÕß php.ini-recommended ¶¼ÐУ©
ÐÞ¸Äextension_dir = "G:\server\php5\ext" £¨ÓòéÕÒ extension_dir£¬Â·¾¶¸ÄΪÄãµÄphp5µÄextĿ¼)
È»ºó±ØÐëÈ¥µô;extension=php_gd2.dll ºÍ;extension=php_mysql.dll Ç°µÄ·ÖºÅ¡£Èç¹û²»ÓÃmysql¡£Ôò¿ÉÒÔ²»É¾³ýphp_mysql.dll Ç°µÄ·ÖºÅ
¡¾À´×Ô¡¿£ºhttp://www.allwiki.com/wiki/Apache2.2_php5.2_mysql_%E9%85%8D%E7%BD%AE%E6%96%B9%E6%B3%95
Ïà¹ØÎĵµ£º
¶¨ÒåºÍÓ÷¨
header() º¯ÊýÏò¿Í»§¶Ë·¢ËÍÔʼµÄ HTTP ±¨Í·¡£
ÈÏʶµ½Ò»µãºÜÖØÒª£¬¼´±ØÐëÔÚÈκÎʵ¼ÊµÄÊä³ö±»·¢ËÍ֮ǰµ÷Óà header() º¯Êý£¨ÔÚ PHP 4 ÒÔ¼°¸ü¸ßµÄ°æ±¾ÖУ¬Äú¿ÉÒÔʹÓÃÊä³ö»º´æÀ´½â¾ö´ËÎÊÌ⣩£º
<html>
<?php
// ½á¹û³ö´í
// ÔÚµ÷Óà header() ֮ǰÒÑ´æÔÚÊä³ö
header('Location: http://www.example ......
1.Èç¹ûÒ»¸ö·½·¨¿É¾²Ì¬»¯£¬¾Í¶ÔËü×ö¾²Ì¬ÉùÃ÷¡£ËÙÂÊ¿ÉÌáÉýÖÁ4±¶¡£
2.echo ±È print ¿ì¡£
3.ʹÓÃechoµÄ¶àÖزÎÊý£¨Òë×¢£ºÖ¸ÓöººÅ¶ø²»ÊǾäµã£©´úÌæ×Ö·û´®Á¬½Ó¡£
4.ÔÚÖ´ÐÐforÑ»·Ö®Ç°È·¶¨×î´óÑ»·Êý£¬²»ÒªÃ¿Ñ»·Ò»´Î¶¼¼ÆËã×î´óÖµ¡£
5.×¢ÏúÄÇЩ²»ÓõıäÁ¿ÓÈÆäÊÇ´óÊý×飬ÒÔ±ãÊÍ·ÅÄÚ´æ¡£
6.¾¡Á¿±ÜÃâʹÓÃ__get£¬__set£¬__autolo ......
ÏÖÔÚ»¹ÓкܶàÈ˸㲻¶®PHPºÍJAVA¿ª·¢µÄÐͬOAµ½µ×ÓÐʲô²»Í¬£¬¶Ô×Ô¼ºµ½µ×ÓÐʲôӰÏ죬ÒÔÖÁÓÚ×ö³öÁË´íÎóµÄÑ¡Ôñ¶øêݺ¦ÎÞÇî¡£±ÊÕ߸ù¾ÝÁ½ÖÖ¼¼ÊõµÄÌصãÖØÐÂÕûÀíÁËÒ»¸ö¶Ô±È£¬¸ø¹ØÐÄÐͬOA¼¼ÊõµÄ¶ÁÕß×ö¸ö²Î¿¼¡£
»ªÌ춯Á¦ÐͬOAÊDzÉÓÃJAVA¼¼ÊõµÄµäÐÍ´ú±í£¬²¢¾ßÓÐһϵÁÐÓÅ»¯É ......
PHPÕýÔò±í´ïʽÖ÷ÒªÓÃÓÚ×Ö·û´®µÄģʽ·Ö¸î¡¢Æ¥Åä¡¢²éÕÒ¼°Ìæ»»²Ù×÷¡£Ê¹ÓÃÕýÔò±í´ïʽÔÚijЩ¼òµ¥µÄ»·¾³Ï¿ÉÄÜЧÂʲ»¸ß£¬Òò´ËÈçºÎ¸üºÃµÄʹÓÃPHPÕýÔò±í´ïʽÐèÒª×ۺϿ¼ÂÇ¡£
ÎÒµÄPHPÕýÔòÈëÃÅ£¬ÊÇÆðÔ´ÓÚÍøÉϵÄһƪÎÄÕ£¬ÕâƪÎÄÕÂÓÉdzÈëÉîµÄ²ûÊöÁËPHPÕýÔò±í´ïʽʹÓõķ½·¨£¬ÎÒ¾õµÃÊÇÒ»¸öºÜºÃµÄÈëÃŲÄÁÏ£¬²»¹ýѧ³É»¹ÊÇÒª¿¿¸öÈË£¬ÔÚʹÓà ......
ËùÐèÈí¼þ£¨×¢Òâ°æ±¾£¡£©£º
Apache2.2.3
PHP5.1.5
MySQL5.0.24
ÕâÈý¸öÈí¼þ¶¼ÊÇÃâ·ÑµÄ£¬¿É´Ó¹ÙÍøÉÏÏÂÔØ£¬Ä¿Ç°ÎÒËùÓеÄÈí¼þÃûΪ£º
apache_2.2.3-win32-x86-no_ssl.msi
mysql-5.0.24-win32.zip
php-5.1.5-Win32.zip
»ùÓÚwindows²Ù×÷ϵͳ£¬ÔÚWindows XPÏ°²×°Ê¹Óãº
1¡¢°²×°¹ý³Ì£º
Ê×ÏÈ°²×°Apache·þÎñÆ÷£¬Ë«»÷apa ......