xampp£¬Eclipse£¬pdt£¬xdebug¹¹½¨phpµÄµ÷ÊÔ»·¾³
×î½üŪphp£¬·¢ÏÖÏÂÔصÄphpEclipse²»Äܵ÷ÊÔ£¬×òÌì¾ÍÓÃÁËÒ»¸öÏÂÎçµÄʱ¼ä´î½¨ÁËphpµÄµ÷ÊÔ»·¾³¡£·¢ÏÖÍøÉϵĹØÓÚphpµ÷ÊÔµÄÎÄÕÂÈÃÈËÓеãÂÒ£¬¾ÍÕûÀíÏÂд³ÉÕâƪÎÄÕ£¬Ï£Íû¶Ô´ó¼ÒÓÐЩ°ïÖú¡£
ÔÚÍøÉϲéºÃÏñÊÇÓÐÁ½ÖÖµ÷ÊԵŤ¾ß£ºXdebugºÍZend Debugger£¬ÎÒÏÖÔÚÓõÄÊÇXdebug¡£ÎÒÖ÷Òª¾Í˵˵xampp£¬Eclipse£¬pdt£¬xdebug¹¹½¨phpµÄµ÷ÊÔ»·¾³µÄ´î½¨¡£
1£©ÏÂÔØ°²×°xampp£¬ÏÂÔصØÖ·£ºhttp://sourceforge.net/projects/xampp/files/¡£È¥ÏÂÔØÏÂÀ´£¬°²×°¼´¿É£¬Õâ²½ºÜ¼òµ¥¡£Èç¹û°²×°ºÃÁË
2£©Eclipse/PDT£¬ÓÉÓÚÎÒ֮ǰ¾ÍÒѾÏÂÔØÁËphpEclipse£¬ÓÚÊÇÎҾͲ鿴ÁËPDTµÄ¹Ù·½ÍøÕ¾µÄhttp://wiki.eclipse.org/PDT/Installation ¸ù¾ÝÍøÕ¾Éϵķ½·¨°²×°ÁËPDT²å¼þ¡£Èç¹ûÄ㻹ûÓÐEclipse£¬ÄÇôÄã¿ÉÒÔÏÂÔØÒ»¸ö PDT 2.1 SR-1 All In Ones °æ±¾µÄeclipse£¬ÏÂÔصØÖ·ÔÚÏÂÃ棺
http://www.eclipse.org/pdt/downloads/
3£©Xdebug£¬ÏÂÔصÄxamppÒ»°ã¶¼»á´øÓÐXdebug£¬ÎÒµÄxamppÊÇ×°ÔÚCÅ̵ÄC:\xampp£¬ÔÚC:\xampp\php\extĿ¼Ï°üº¬ÁËphp_xdebug.dll¡£Äã¿ÉÒÔÔÚÄã°²×°xamppµÄÕâ¸öĿ¼Ï²éÕÒÏ£¬Èç¹ûûÓеĻ°£¬¾Í¿ÉÒÔÔÚÍøÉÏÏÂÔØÒ»¸öXdebug£¬ÏÂÔصĵØÊÇ£º
http://xdebug.org/download.php£¬È»ºóÔÚC:\xampp\apache\binÎļþ¼ÐÖÐÕÒµ½php.ini£¬×¢ÒâÊÇApacheÖÐbinÎļþ¼ÐϵÄphp.ini¡£¶ÔÓÚphpµÄÅäÖÃÊÇÔÚÕâ¸ö³õʼ»¯ÎļþÖÐÕÒµ½ÈçÏ´úÂ룺
[XDebug]
;; Only Zend OR (!) XDebug
;zend_extension_ts="C:\xampp\php\ext\php_xdebug.dll"
;xdebug.remote_enable=true
;xdebug.remote_host=127.0.0.1
;xdebug.remote_port=9000
;xdebug.remote_handler=dbgp
;xdebug.profiler_enable=1
;xdebug.profiler_output_dir="C:\xampp\tmp"
°Ñ×¢ÊÍÈ¥µô±ä³ÉÏÂÃæÕâÑù£¬Èç¹ûûÓÐÉÏÊö´úÂëµÄ»°¾Í¼ÓÉÏÏÂÃæµÄ´úÂ룬Èç¹ûÄãµÄXdebugÊÇÏÂÔصľͰÑÆäÖеÄzend_extension_ts="C:\xampp\php\ext\php_xdebug.dll"¸Ä³Ézend_extension_ts="C:\xampp\php\ext\ÄãµÄXdebug.dllÃû³Æ"£º
[XDebug]
;; Only Zend OR (!) XDebug
zend_extension_ts="C:\xampp\php\ext\php_xdebug.dll"
xdebug.remote_enable=true
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.profiler_output_dir="C:\xampp\tmp"
ÁíÍâÓÉÓÚXdebugºÍzendOptimizer²»ÄÜͬʱ¹¤×÷£¬ÄÇô»¹ÐèÒª½«ÏÂÃæµÄ´úÂë×¢Ê͵ô£¬¸Ä³ÉÏÂÃæÕâÑù£º
[Zend]
;zend_extension_ts = "C:\xampp
Ïà¹ØÎĵµ£º
¿ÉÒÔʹÓÃabstractÀ´ÐÞÊÎÒ»¸öÀà»òÕß·½·¨¡£
ÓÃabstractÐÞÊεÄÀà±íʾÕâ¸öÀàÊÇÒ»¸ö³éÏóÀ࣬ÓÃabstractÐÞÊεķ½·¨±íʾÕâ¸ö·½·¨ÊÇÒ»¸ö³éÏó·½·¨¡£
³éÏóÀ಻Äܱ»ÊµÀý»¯¡£
³éÏó·½·¨ÊÇÖ»Óз½·¨ÉùÃ÷£¬¶øûÓз½·¨µÄʵÏÖÄÚÈÝ¡£
abstract ³éÏóÀà
¿ÉÒÔʹÓÃabstractÀ´ÐÞÊÎÒ»¸öÀà¡£
ÓÃabstractÐÞÊεÄÀà±íʾÕâ¸öÀàÊÇÒ»¸ö³éÏóÀà¡£
³éÏóÀ ......
<p>³éÏóÀàʵÏÖ½Ó¿Ú£¬¿ÉÒÔ²»ÊµÏÖÆäÖеijéÏó·½·¨£¬¶ø½«³éÏó·½·¨µÄʵÏÖ½»¸¶¸ø¾ßÌåÄܱ»ÊµÀý»¯µÄÀàÈ¥´¦Àí¡£</p>
<textarea name="code" class="php">
<?php
interface User
{
function getName();
function setName($_name);
}
//´Ë´¦Ö»ÊÇʵÏÖÁËÒ»¸ö½Ó¿ÚµÄÒ»¸ö·½·¨
abstract cl ......
PHPÊÇÈõÀàÐÍÓïÑÔ£¬Ïò·½·¨´«µÝ²ÎÊýʱºòÒ²²»Ì«Çø·ÖÀàÐÍ¡£ÕâÑùµÄʹÓûáÒýÆðºÜ¶àµÄÎÊÌ⣬PHP¿ª·¢ÕßÈÏΪ£¬ÕâЩÎÊÌâÓ¦¸ÃÊÇÓÉ´úÂëÊéдÕßÔÚÊéд´úÂëʱ½øÐмìÑéÒÔ±ÜÃ⡣ûÓÐÀàÐÍÌáʾºÜΣÏÕ¡£
<?php
class NormalUser
{
/*
* ÆäËüÏà¹Ø´úÂë..Ê¡ÂÔ........
*/
private $age;
public function setAge($_age) {
$this- ......
Ò».»·¾³µÄ°²×°
ÏÂÔØ°²×°°ü£¬GoogleÉÏËÑË÷php+apache+sqlµÄ°²×°°ü²¢°²×°¡£
¶þ.À©Õ¹±à³Ì
Õë¶ÔÔÚPHP»·¾³ÏµôÓÃC±à³Ì(c³ÌÐò±àÒëµÄdll)£¬Ö÷ÒªÓÐÒÔÏÂÁ½ÖÖ·½Ê½¡£
1.ÀûÓÃATL¹¹½¨DLL×é¼þ£¬È»ºóÔÙPHPÀïÃæÖ±½Óµ÷Ó㬵÷Ó÷½·¨ ......
class runtime
{
var $StartTime = 0;
var $StopTime = 0;
function get_microtime()
{
list($usec, $sec) = explode(' ', microtime());
return ((float)$usec + (float)$sec);
}
function start()
{
$this->StartTime = $this->ge ......