Apache+MySQL+PHP»·¾³ÅäÖÃ
°æ±¾£ºapache_2.2.6-win32-x86-no_ssl
Ö±½Ó°´Ä¬ÈÏ°²×°£¬°²×°Ê±Òª¹Ø±Õä¯ÀÀÆ÷¸úÏÂÔØÈí¼þ£¬·ñÔò°²×°Íê³Éºó·þÎñÆ÷²»ÄÜÆô¶¯£¬±¨²»ÄÜ°ó¶¨80¶Ë¿ÚµÄ´íÎó¡£Æô¶¯ºóÔÚµØÖ·À¸ÖÐÊäÈë“http://localcast/”»ò“http://127.0.0.1/”£¬Èç¹û¿ÉÒÔ¿´µ½"It Works"£¬ËµÃ÷°²×°³É¹¦¡£
Èç¹ûÐèÒª¸ü¸ÄĬÈÏ·¾¶£¬´ò¿ª“C:\Program Files\Apache Software Foundation\Apache2.2\conf”Ŀ¼ÏµÄhttpd.confÎļþ£¬²éÕÒ“DocumentRoot£¨ÕâÀïÓÐÁ½´¦¶¼±ØÐë¸Ä£©£¬½«Æä·¾¶Ð޸ijÉÐèÒªÉèÖõķÃÎÊ·¾¶£¬ÕâÀï¸ÄΪ“D:/masterphp”£¨×¢Òâб¸Ü·½Ïò£¬Óë·¾¶·½Ïò²»Í¬£©¡£
LoadModule php5_module F:/php/php5apache2_2.dll
LoadFile F:/php/php5ts.dll
LoadFile F:/php/libmysql.dll
PHPIniDir "F:/php"
2. PHPµÄ°²×°ÅäÖÃ
°æ±¾£ºphp-5.2.5-Win32
ÏÂÔغóÖ±½Ó½âѹ¾Í¿ÉÒÔÁË£¬ÕâÀïÎÒÃǽâѹµ½“C:\Program Files\php-5.2.5-Win32”Ŀ¼Ï¡£ÏÂÃ潫PHPºÍApache·þÎñÆÚÁ¬½Ó£º
(1)Ð޸ēC:\Program Files\php-5.2.5-Win32”Ŀ¼ÏÂ"php.ini-recommened"ÎļþÃû£¬¸Ä³É"php.ini"
(2)½«“php.ini”Îļþ¿½±´µ½ApacheĿ¼Ï£¬¼´“C:\Program Files\Apache Software\Foundation\Apache2.2”Ŀ¼ÏÂ
(3)´ò¿ªphp.iniÎļþ£¬ÐÞ¸ÄÒÔϼ¸¸ö¹Ø¼ü×Ö
²éѯextension_dir="./"ÐÞ¸ÄΪ
extension_dir="C:\Program Files\php-5.2.5-Win32\ext"
Èç¹ûÔÚÏÔʾÖÐÎĵÄʱºò³öÏÖÂÒÂ룬¿ÉÒÔ²éѯ;default_charset="iso-8859-1"ÐÞ¸ÄΪdefault_charset="gbk"£¬×¢ÒâҪȥµôÇ°ÃæµÄ“;”
ºÜ¶àʱºòÐèÒªÀûÓÃsession¶ÔÏóÀ´´æ´¢Êý¾Ý£¬ÈçsessionÉí·ÝÑéÖ¤¡¢Éè¼Æ¹ºÎï³µµÈ£¬Òò´Ë»¹±ØÐëÒªÕÒµ½ÁíÍâÒ»¸öÊôÐÔ£¬¼´°Ñ
;session.save_path="/tmp"ÐÞ¸ÄΪ
session.save_path="C:/Program Files/php-5.2.5-Win32/session"
£¨sessionÎļþ¼ÐÐèÊÖ¹¤´´½¨£¬Ò²¿ÉÒÔ´´½¨ÆäËûµÄĿ¼£©
²éÕÒdisplay_errorsºÍcgi.force_redirect£¬ÔʼÉèÖÃΪ
display_errors=off
;cgi.force_redirect=1
ÐÞ¸ÄΪ
display_errors=ON
cgi.force_redirect=0
£¨display_errorsÊôÐÔ±íʾÔÚÔËÐÐʱÈç¹û·¢Éú´íÎó£¬ÊÇ·ñ»áÏÔʾ´íÎóÐÅÏ¢¡£¶øcgi.force_redirectΪ0±íʾǿÖƲ»ÔËÐÐÔÚCGIģʽÏ£©
PHPÔÚApacheÖй¤×÷£¬ÓÐÁ½ÖÖ·½Ê½£¬Ò»ÖÖÊÇÒÔCGI¶þ½øÖÆÎļþ·½Ê½¹¤×÷£¬Ò»
Ïà¹ØÎĵµ£º
ÕâÀï˵µÄPHP¿ª·¢¹¤¾ß£¬Ö¸µÄÊÇIDE¹¤¾ß¡£ÏñEditplus¡¢Notepad++¡¢UltralEditµÈ¹¤¾ß¶¼ÊǺܺõĿª·¢¹¤¾ß£¬ÌرðÊǶÔÓÚ³õѧÕßÀ´Ëµ£¬µ«ÊÇÕâÀï¾Í²»ÔÙÊäÕâЩÁË¡£ÎÒÃÇ¿´Ò»¿´³£ÓõÄIDE¿ª·¢¹¤¾ß£¬ÎÒ¸öÈËÀí½âÈç¹ûÒªÊÇ×Ô¼ºÑ§Ï°¡¢Á·Ï°Ò»¶¨ÒªÓÃÀàËÆÓÚEditplusµÄÎı¾±à¼Æ÷£¨¼Çʱ¾¾ÍÌ«¹ý·ÖÁË£©¡£µ«ÊÇÈç¹ûÊÇʵ¼ÊÏîÄ¿ÔÙʹÓÃÄĸö¾ÍÓе㲻ºÏÊÊÁË ......
Ö÷Òª·ÖΪ3²½£º
µÚÒ»²½£ºÉèÖÃFCKeditor/fckconfig.js
1.
var _FileBrowserLanguage = 'php' ; // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage = 'php' ; // asp | aspx | cfm | lasso | perl | php
2.
FCKConfig.ImageBrowser = false ;//¹Ø±Õ·þÎñÆ÷ä¯ÀÀ¹¦ÄÜ
µÚ¶þ²½£º ......
»°ËµÍ·ÌÛÁËNÌìµÄÎÊÌâ,½ñÌìÖÕÓÚ½â¾öÁË¡£
Òª×öMangosµÄ¹ÜÀíÈí¼þ£¬Copy¶àÍæħÊÞÊý¾Ý¿â×öÁ˸öÏàͬ¹¦ÄܵijÌÐò£¬µ«ÊÇ¿ª·¢Öз¢ÏÖ²¢²»ÊÇÈ«²¿µÄÐÅÏ¢¶¼ÌåÏÖÔÚÊý¾Ý¿âÀï¡£
ΨһµÄ½â¾ö·½·¨¾ÍÊÇÈ¥¶ÁÈ¡dbcÎļþ¡£
×ʼÏëµ½µÄ¾ÍÊÇʹÓÃÀàËƶÁÈ¡ip¿âµÄ·½·¨¡£µ«ÊÇÎÊÌâºÜÃ÷ÏÔ£¬²»Í¬µÄ¿âÎļþ´æ·ÅµÄÍ·Îļþ³¤¶È²»Í¬£¬Ö»ÄÜÒ»µãÒ»µãµÄÊÔ»òÊÇÔÚÍøÉ ......
<?
//http://www.jb51.net
class upLoad{
public $length; //ÏÞ¶¨Îļþ´óС
public $file; //ÅжϴËÀàÊÇÓÃÓÚͼƬÉÏ´«»¹ÊÇÎļþÉÏ´«
public $fileName; //ÎļþÃû
public $fileTemp; //ÉÏ´«ÁÙʱÎļþ
public $fileSize; //ÉÏ´«Îļþ´óС
public $error; //ÉÏ´«ÎļþÊÇ·ñÓдí,php4ûÓÐ
public $fileType; //ÉÏ ......
±¾ÎÄת×Ô"PHP°®ºÃÕß"£ºhttp://www.phpfans.org/?cat=1
Ò»°ãÓõ½“ÒýÇæ”Á½×Ö¶¼»á¸Ð¾õ±È½Ï¸ß¼¶£¬"Ä£°åÒýÇæ"ÕâËĸö×ÖÌýÆðÀ´ºÜ¸ßÉîµÄÑù×Ó£¬ÀàËÆÓÎÏ·3DÒýÇæ¡¢ZendÒýÇæµÈ£¬Æäʵ¶¼ÊÇ»£È˵ģ¬ÆÍâÐÐÈ˵ġ£ËùÒÔÔÚÎÒ³õѧPHPµÄÄǻᣬҲÒòΪÕâËĸö×Öµ¼ÖÂÁËÎÒ¾õµÃºÜÄѶøûÓÐÈ¥¿´Ëûµ½µ×ÊÇʲôÑùÒ»¸ö¶«Î÷£¬Ö±µ½ºÜ³¤Ê±¼äÒÔºóÊ¹Ó ......