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

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


Ïà¹ØÎĵµ£º

PHPÎÞÏÞ·ÖÀàµÄÀý×Ó£¨°üÀ¨Êý¾Ý¿â£©×ª

ÆäËû³£¼ûµÄÎÞÏÞ·ÖÀà·½·¨£º
1£¬¼òµ¥µÄͨ¹ýµÝ¹é²éѯ¼ÓĿ¼path×ֶεÄÎÞÏÞ·ÖÀà
ȱµã£º²éѯÊý¾Ý¿â´ÎÊýÌ«¶à£¬²»·½±ãÆäËû²Ù×÷£¬±ÈÈçɾ³ý½Úµã¡£Ìí¼Ó½Úµã£¬Òƶ¯½Úµã
2£¬×óÓÒÖµÎÞÏÞ·ÖÀ࣬ԤÅÅÐò¶þ²æÊ÷
ȱµã£º²Ù×÷·±Ëö£¬Êý¾Ý¿âÈßÓ࣬ÇÒÌí¼Óɾ³ýÐ޸Ķ¼Òª½øÐÐ×óÓÒÖµ¸üÐÂ
±¾·ÖÀà·½·¨µÄÓÅÊÆ£º
1£¬Êý¾Ý¿â½á¹¹¼òµ¥£¬Ö»ÓÐ cid parentid ......

LinuxÏÂÈí¼þ¡¢PHPºÍPerlµÄÄ£¿éµÈ¶¼ÊµÏÖÁË×Ô¶¯°²×°

LinuxÏÂÈí¼þ¡¢PHPºÍPerlµÄÄ£¿éµÈ¶¼ÊµÏÖÁË×Ô¶¯°²×°£¬ÕæµÄºÜ·½±ã£¬±¾Îļòµ¥½éÉÜһϡ£
linuxÏ¿ÉÒÔʹÓÃyum¹¤¾ß£¬RedhatÏÂ×Ô¶¯´øÓУº
yum list php*   //¿ÉÒԲ鿴phpµÄÏà¹ØÄ£¿é
yum install php //°²×°phpÕâ¸öÄ£¿é
phpÄ£¿éµÄ×Ô¶¯°²×°(ÀûÓÃpecl.php.netºÍpear.php.netÔÚÏß°²×°)£º
ÀûÓÃpearºÍpecl¹¤¾ß£¬Ê×ÏÈÐèÒª° ......

phpÉú³ÉHTML


< type="text/javascript">
smarty ¿ÉÒÔÉú³É£¬­
ÆäʵÉú³ÉµÄÔ­ÀíºÜ¼òµ¥ ­
1¡¢»ñÈ¡Ä㶯̬ҳÃæµÃÄÚÈÝ ­
2¡¢Ð´È뾲̬Îļþ­
±ÈÈ磺 ­
<? ­
//»ñÈ¡ÎļþÄÚÈÝ ­
$content=file_get_contents(http://www.www.com/viewPage.php?id=$id
); ­
//¼ì²éÊÇ·ñ´æÔÚ¾ÉÎļþ£¬ÓÐÔòɾ³ý ­
i ......

¼òµ¥µÄ¼ÆËãphpÒ³Ãæ´¦Àíʱ¼ä

<?php 
function getmicrotime(){ 
list($usec, $sec) = explode(" ",microtime()); 
return ((float)$usec + (float)$sec); 

//Àý×Ó 
//¿ªÊ¼ 
$time_start = getmicrotime();  
//ÕâÀï·ÅÄãµÄ´úÂë 
......

PHP³£ÓÃÄÚÖó£Á¿

ϵͳÉè¼Æ´ÓÒ»¿ªÊ¼¾ÍÓ¦¸Ã¿¼ÂDz»Í¬Æ½Ì¨µÄ¼æÈÝÐÔÎÊÌ⣬×î³£¼ûÒ»¸öÎÊÌâ¾ÍÊÇLinux/uniuxÓëWinµÄһЩ²»Í¬£¬±ÈÈç˵Îļþ·¾¶·Ö¸ô·û¡¢¶à¸ö·¾¢·Ö¸ô·ûµÈµÈ¡£PHP±¾ÉíÄÚÖÃÁ˺ܶೣÁ¿£¬ÔÚ·½±ãµÄ±àд´úÂëͬʱҲºÜºÃµÄ´¦ÀíºÃÁ˲»Í¬Æ½Ì¨ÏµÄһЩ¼æÈÝÐÔÎÊÌâ¡£±ÈÈç×î³£Óõģº
DIRECTORY_SEPARATOR    ·¾¶·Ö¸ô·û£¬WinÏÂÊÇ"\"¶ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ