Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Linux ÏÂApache+MySQL+PHP°²×°¼°ÅäÖùý³Ì

»·¾³£º±¾ÎÄÖеÄLinux²Ù×÷ϵͳΪCentOS 5.2£¬Linux 2.6+ ÄÚºË £¬Apache+MySQL+PHP °²×°¼°»ù±¾ÅäÖùý³Ì¼Ç¼ÏÂÀ´ÒÔ¹©²Î¿¼£º
Ò». Apache Web·þÎñÆ÷µÄÔ´´úÂë°²×°£¬Tarball°²×°·½Ê½£º
1. Ô´Âë°ü£ºhttpd-2.2.6.tar.gz ´Ó www.apache.org
ÏÂÔص½´ËĿ¼Ï£º/usr/local/src ͬʱÔÚ /usr/local Ï´´½¨Ò»¸öhttpdĿ¼:mkdir httpd
2. ½âѹ°²×°°ü£ºtar -zxvf httpd-2.2.6.tar.gz
3. ½øÈë½âѹºóµÄ°²×°°ü£ºcd httpd-2.2.6
4. ÅäÖãº./configure --prefix=/usr/local/webserver/httpd --enable-cgi ( ÒâÒåÖ§³ÖCGI)
5. ±àÒ룺make
6. °²×°£ºmake install
7. Æô¶¯web·þÎñ£º
   /usr/local/httpd/bin/apachectl start »ò service httpd start
   »òÕߣº¿ª»úºóÁ¢¼´Æô¶¯web·þÎñ
   vi /etc/rc.d/rc.local
   мÓÒ»ÐÐ
   /usr/local/httpd/bin/apachectl start »ò chkconfig --level 345 httpd on
8. ÅäÖÃApache·þÎñÆ÷
   Apache ÅäÖÆÎļþ¼°Ä¿Â¼ÊÇ£º/usr/local/
webserver/
httpd/conf/httpd.conf
   ApacheĬÈÏ´æ·ÅÖ÷Ò³µÄλÖÃÓ¦¸ÃÊÇ£º/usr/local/
webserver/
httpd/apache/htdocs
   DocumentRoot "/usr/local/
webserver/
httpd/htdocs" Õâ¸öÊÇ´æ·ÅÍøÒ³µÄĿ¼,ÎÒÃÇÓ¦¸Ã°ÑÍøÒ³µÄĿ¼ָ¶¨µ½ÄÄÀÕâÑùµ±·ÃÎÊÍøַʱ£¬¾Íµ÷ÓÃÕâ¸öĿ¼µÄÎļþ¡£
   <Directory "/opt/apache/htdocs"  Õâ¾äÓ¦¸ÃºÍDocumentRoot µÄĿ¼±£³ÖÒ»Ö¡£
    ϵͳ×Ô¶¯Ìí¼ÓÁËÕâÒ»ÐУ¬Èç¹ûûÓÐÔò×Ô¼º¼ÓÈëÕâÒ»ÐС£
   LoadModule php5_module        modules/libphp5.so
   ÕÒµ½£º DirectoryIndex index.html index.html.var
   ¸ÄΪ£º DirectoryIndex index.html index.html.var index.php
   ÕÒµ½£º AddType application/x-tar .tgz
   Ìí¼Ó£º AddType application/x-httpd-php .php
£¨×¢Òâ¿Õ¸ñ£©   
   ÕâÁ½ÏîÅäÖþÍÊǸæËßApache Server£¬ÒÔºóÊÕµ½µÄUrlÓû§ÇëÇ󣬷²ÊÇÒÔphp×÷Ϊºó׺£¬¾ÍÐèÒªµ÷ÓÃphp5_moduleÄ£¿émod_php5.so/ php5apache2.dll£©½øÐд¦Àí¡£  unix/linux ÏÂ,soºó׺ÎļþÊÇÒ»¸öDSOÎļþ£¬DSOÓëwindowsϵͳϵÄdllÊǵȼ۸ÅÄ¶¼ÊÇ°ÑÒ»¶Ñº¯Êý·â×°ÔÚÒ»¸ö¶þ½øÖÆÎļþÖС£µ÷ÓÃËüÃǵĽø³Ì°ÑËüÃÇ×°ÈëÄ


Ïà¹ØÎĵµ£º

Linux iptableÎĵµ

×ÜÀÀ
ÓÃiptables -ADC À´Ö¸¶¨Á´µÄ¹æ
Ôò
£¬-AÌí¼Ó -Dɾ³ý -C ÐÞ¸Ä
iptables - [RI] chain rule num rule-specification[option]
ÓÃiptables - RI ͨ¹ý¹æÔòµÄ˳ÐòÖ¸¶¨
iptables -D chain rule num[option]
ɾ³ýÖ¸¶¨¹æÔò
iptables -[LFZ] [chain][option]
ÓÃiptables -LFZ Á´Ãû [Ñ¡Ïî]
iptables -[NX] chain
ÓÃ -NX ......

PHPдµÄMD5ÆƽâÓë¼ÓÃܳÌÐò

³ÌÐò´úÂë
<!--p
  if(isset($_POST['md5'])){ //ÅжÏ$md5ÊÇ·ñÒÑÉèÖã¬Èç¹ûÉèÖÃÁËÔòÖ´ÐÐÒÔÏ´úÂë¡£
  if(!is_numeric($_POST['time'])){ //Èç¹ûû»ñÈ¡µ½timeµÄÖµÔò½«timeµÄÖµÉèÖÃΪ30
    $_POST['time'] = 30;
      }
    set_time_limit($_P ......

Eclipse Debug PHP (¹ØÓÚZendDebugger)µÄʹÓÃ

Apache °æ±¾£º 2.2
PHP °æ±¾£º5.2.11
EclipseÏÂÔصØÖ·£ºhttp://downloads.zend.com/pdt/all-in-one/zend-eclipse-php-galileo-SR1-win32-x86.zip
½âѹºóÔËÐÐEclipse.exe
Ñ¡Ôñ¹¤×÷¿Õ¼ä
ÎÒÑ¡ÔñÁËE:\PHPworkspace
ÕâʱҪ²åÈëÒ»²½
´ò¿ªApacheµÄÅäÖÃÎļþhttpd.conf
²éÕÒ”DocumentRoot“
ÐÞ¸ÄdocumentrootµÄÖ ......

¡¾´ýÐ޸ġ¿±íµ¥ÑéÖ¤Ö®PHP´úÂë¿ò¼Ü

  ÎÒÔÚÉÏһƪÎÄÕÂÖн²µ½Ê¹ÓÃjavascript×ö¼¯³É±íµ¥ÑéÖ¤µÄ·½·¨£¬¶ÔÓÚ¿Í»§¶ËÑéÖ¤ÒѾ­×ã¹»£¬µ«ºÃµÄ±íµ¥Ñé֤ӦͬʱÔÚ¿Í»§¶ËºÍ·þÎñÆ÷¶Ë½øÐЗ—ÕâÕýÊÇд±¾ÎĵÄÄ¿µÄ¡£
    Èç¹û²ÉÓÃÒ»°ãµÄÑéÖ¤·½·¨Ó¦¸ÃÔõÑùдÄØ£¿
    if ($_POST['some'] ²»Âú×ã condition) {
   & ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ