PHPµ÷ÊÔµÄÒ»°ã²½Öèѧϰ¼Ç¼
±¾ÎÄÖ»ÊÇÔÚ³¢ÊÔPHPµ÷ÊÔºó»ñµÃµÄÈô¸É¾ÑéµÄ¼Ç¼¡£
PHPµÄIDEµ÷ÊÔ¶¼±È½ÏÍ´¿à£¬Ò»°ãºÜÄÑÓм¯³ÉµÄIDE¡£ÔÚϰ¹ßÓÃMyEclipseµ÷ÊÔJSPÓ¦Óúó£¬ÔÙÈ¥¿ª·¢PHP³ÌÐò×ܾõµÃÌØ±ðÂé·³£¬Æä×î´óÔÒò¿ÉÄܾÍÊǵ÷ÊÔ»·¾³µÄ°²×°ºÍÅäÖᣱÊÕß³¢ÊÔ¹ýN´Î£¬Ê²Ã´xDebug£¬DBG Script£¬Zend Debugger£¬Í³Í³ÕûÁËÒ»±é£¬¾³£±ÀÀ£µÄ£¬Ò²·ÅÆú¹ýºÃ¼¸´Î£¬ÕætmdµÄxxx¡£ÒÔϼǼÔÚZend Studio for Eclipse ÅäÖà Zend DebuggerµÄ²½Ö裬¹©ÈÕºó²Î¿¼£¬Ò²¹©¹ý¿ÍÔÄÀÀ¡£
1£¬ÏÂÔØ Zeng Debugger
Ŀǰ(20100303)ÓÐЧµØÖ·ÊÇ£º
http://downloads.zend.com/pdt/server-debugger/ZendDebugger-5.2.14-cygwin_nt-i386.zip
ÏÂÔØµÃµ½µÄ°üÖÐÓиöREADME.txt£¬ËµµÄ±È½ÏÇå³þ£º
Zend Debugger installation instructions
---------------------------------------
1. Locate ZendDebugger.so or ZendDebugger.dll file that is compiled for the
correct version of PHP (4.3.x, 4.4.x, 5.0.x, 5.1.x, 5.2.x) in the
appropriate directory.
2. Add the following line to the php.ini file:
Linux and Mac OS X: zend_extension=/full/path/to/ZendDebugger.so
Windows: zend_extension_ts=/full/path/to/ZendDebugger.dll
Windows non-tread safe: zend_extension=/full/path/to/ZendDebugger.dll
(*) the windows non-thread safe is used only with Zend Core 2.0
3. Add the following lines to the php.ini file:
zend_debugger.allow_hosts=<ip_addresses>
zend_debugger.expose_remotely=always
4. Place dummy.php file in the document root directory.
5. Restart web server.
2£¬°´ÕÕÉÏÃæµÄ˵Ã÷£¬°ÑÏà¹Ø°æ±¾µÄdll·ÅÈëPHPµÄ°²×°Ä¿Â¼µÄextÏÂ
ZendDebugger.dllҪѡÔñÓëphp°æ±¾ÏàÆ¥ÅäµÄ
3£¬°Ñdebugger´øµÄdummy.php¸´ÖƵ½apacheÍøÕ¾¸ùĿ¼£¬dummy.phpÖ÷ÒªÓÃÀ´Óëä¯ÀÀÆ÷°²×°µÄZend Studio ToolbarͨÐÅ
4£¬ÅäÖÃphp.ini
[Zend]
zend_extension_ts=D:/PHP/ext/ZendDebugger.dll
zend_debugger.allow_hosts=127.0.0.1/32 ¡¾±¾»úIPµØÖ·/32¡¿
zend_debugger.a
Ïà¹ØÎĵµ£º
¶àÅóÓѶ¼Ìáµ½¹ý WINDOWS 2003 + IIS 6.0 °´ÕÕÍøÉÏÌṩµÄ·½·¨ ÎÞÂÛÔõôÅäÖö¼²»³É¹¦ ËÑË÷ÁËһϠ¿´µ½µ½´¦¶¼ÊÇͬһ¸ö°æ±¾µÄ·°æ×ªÔØ ¹ûÈ»ÊDz»Äܳɹ¦
ÏÖÔÚÐðÊöһϱ¾Õ¾ÔÚWINDOWS 2003 IIS 6.0 ÖÐÊÇÈçºÎÅäÖà PHP»·¾³µÄ
Èà IIS6.0 Ö§³Ö PHP -=> php4.3.9 µÄ°²×°ÅäÖÃ
²»½¨ÒéʹÓð²×°°æ ÕâÀïÑ¡ÓÃÁË php4.3.9 µÄ½âѹ°æ
µÚÒ»² ......
½üÀ´¶Ôphp±È½Ï¸ÐÐËȤ£¬¾Í¶Ï¶ÏÐøÐøµÄ»¨ÁËÁ½¸öÐÇÆÚµÄʱ¼ä°ÑÕû¸öphp¿ª·¢ÐèÒªÓõ½µÄ¶«Î÷¶¼×°ºÃÁË£¬´ó¸ÅµÄ°²×°¹ý³ÌÈçÏ¡£
Ò»¡¢°²×°µÄÈí¼þ:
Apache: 2.2.14
PHP:5.2.12
MySQL:5.1.42¡£
SVN:1.5.6
PHPMyAdmin:3.2.5
Zend Studio: 7.1
Zend Debugger: 5.1.14
¶þ¡¢°²×°¹ý³Ì£º
1. °²×°ºÍÅäÖÃapache
°²×°£ºÊ×ÏÈ´Óhttp://apa ......
¿ÉÒÔʹÓõÄÃüÁ
popen
fpassthru
shell_exec
exec
system
1.popen
resource popen
( string command, string mode )
´ò¿ªÒ»¸öÖ¸Ïò½ø³ÌµÄ¹ÜµÀ£¬¸Ã½ø³ÌÓÉÅÉÉú¸ø¶¨µÄ command
ÃüÁîÖ´Ðжø²úÉú¡£
·µ»ØÒ»¸öºÍ fopen()
Ëù·µ»ØµÄÏàͬµÄÎļþÖ¸Õ룬ֻ²»¹ýËüÊǵ¥ÏòµÄ£¨Ö»ÄÜÓÃÓÚ¶Á»òд£©²¢ÇÒ±ØÐëÓà pclose()
À´¹Ø±Õ ......
LinuxÏÂÈí¼þ¡¢PHPºÍPerlµÄÄ£¿éµÈ¶¼ÊµÏÖÁË×Ô¶¯°²×°£¬ÕæµÄºÜ·½±ã£¬±¾Îļòµ¥½éÉÜһϡ£
linuxÏ¿ÉÒÔʹÓÃyum¹¤¾ß£¬RedhatÏÂ×Ô¶¯´øÓУº
yum list php* //¿ÉÒԲ鿴phpµÄÏà¹ØÄ£¿é
yum install php //°²×°phpÕâ¸öÄ£¿é
phpÄ£¿éµÄ×Ô¶¯°²×°(ÀûÓÃpecl.php.netºÍpear.php.netÔÚÏß°²×°)£º
ÀûÓÃpearºÍpecl¹¤¾ß£¬Ê×ÏÈÐèÒª° ......
Ò»ÏîÄ¿¿ª·¢
ÐèÇó·ÖÎö¡¢ÏµÍ³·ÖÎö¡¢ÏµÍ³Éè¼Æ¡¢³ÌÐò¿ª·¢¡¢¼¯³ÉºÍ²âÊÔ
¶þ¡¢ÏîÄ¿·Ö¹¤
³ÌÐòÉè¼Æ¡¢¹²ÓÃ×é¼þÉè¼Æ¡¢Êý¾Ý¿â¡¢ÃÀ¹¤¡¢Îļþ±àд¡¢Êý¾ÝÊäÈë¡¢°²×°Î¬»¤¿Í·þ
Èý¡¢MySQL
Ëٶȿ죬֧³Ö¶àÏß³ÌÓë¶àÓû§Í¬Ê±ÔÚÏߵĹØÏµÊý¾Ý¿â¹ÜÀíϵͳ
»ù±¾µÄMySQLÃüÁîµÄ¼ÇÒä
ËÄ¡¢HTML
»ù±¾htmlµÄÓï¾ä ......