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

PHPEclipse + XDebug+ APMServ5.26ÏÖʵPHPµ÷ÊԵķ½·¨

²Î¿¼×ÊÁÏ£º
1.
2. http://www.phpeclipse.com/wiki/Howto/XDebugAndPHPEclipse
1.ÏÂÔØXDebug http://xdebug.org/download.php
Ñ¡ÔñÓÚPHP°æ±¾Ïà¶ÔÓ¦µÄµÄ 5.2 VC6 (32 bit) ÏÂÔØ£¬¸ÄÃû³Éphp_xdebug.dllºó¸´ÖƵ½E:/APMServ5.2.6/PHP/ext/ÖÐ
2£® ÔÚphp.iniÖÐÌí¼ÓÒÔÏÂÄÚÈÝ£¬²¢½«zendµÄÆäËûÓ¦Óùصô£¨×¢Ê͵ôÆäËûzend_extension_tsÓï¾ä£©
[Xdebug]
zend_extension_ts="E:/APMServ5.2.6/PHP/ext/php_xdebug.dll"
xdebug.remote_enable=On
xdebug.remote_autostart=On
xdebug.remote_handler=dbgp
xdebug.remote_host=192.168.1.100
xdebug.remote_port=9000
xdebug.remote_mode=req
/***
xdebugÅäÖÃ
´ò¿ªphp.ini
ÔÚ×îºóÒ»ÐмÓÈëÒÔÏÂÅäÖôúÂ룬ÅäÖÃ˵Ã÷ÒѾ­×öºÃ×¢ÊÍ
;ÔØÈëXdebug
zend_extension_ts="c:/php/ext/php_xdebug.dll"
;xdebugÅäÖÃ
[Xdebug]
;¿ªÆô×Ô¶¯¸ú×Ù
xdebug.auto_trace = On
;¿ªÆôÒì³£¸ú×Ù
xdebug.show_exception_trace = On
;¿ªÆôÔ¶³Ìµ÷ÊÔ×Ô¶¯Æô¶¯
xdebug.remote_autostart = On
;¿ªÆôÔ¶³Ìµ÷ÊÔ
xdebug.remote_enable = On
;ÊÕ¼¯±äÁ¿
xdebug.collect_vars = On
;ÊÕ¼¯·µ»ØÖµ
xdebug.collect_return = On
;ÊÕ¼¯²ÎÊý
xdebug.collect_params = On
×¢Òâzend_extension_tsºóÃæµÄ·¾¶ÒªÌîд¾ø¶Ô·¾¶£¬±£´æºóÖØÆô·þÎñÆ÷¼´¿É¡£
±¾ÆªÎÄÕÂÀ´Ô´ÓÚPHPÂÛ̳ ÎÄÕµØÖ·£ºhttp://bbs.php.cn/viewthread.php?tid=20477&highlight=Eclipse
**/
phpinfo()Öп´µ½with Xdebug v2.0.5, Copyright (c) 2002-2008, by Derick Rethans¾ÍËã³É¹¦¼ÓÔØÁËXdebugÁË
3.ÏÂÔØclassic°æµÄEclipse£¨Ã»ÓÐ×°PDT²å¼þµÄ£©£¬Ê¹ÓÃhttp://update.phpeclipse.net/update/stable/1.2.xÍøÖ·°²×°phpeclipse£¬¼ÇµÃ²»ÒªÑ¡ÔñDBGµÄ²å¼þ
4.ÔÚEclipseÖÐpreferences->phpeclipse->xdebugÖУ¬ÊäÈë9000ºÍE:\APMServ5.2.6\PHP\php.exe
5.ÔÚrun->debug configurationÖÐÊäÈëIde Identification String£¬±ÈÈçdebug£¬Ö»ÄÜÊÇÓ¢ÎÄ£¬²»ÄÜʹÊý×Ö£¬¼ò¶ÌÒ׼ǾÍÐУ»Ë«»÷PHP XDebug Remote Script£¬ÔÚPathmap ÖеÄLocal PathºÍRemote PathÖÐÊäÈëÏîÄ¿µÄ´æ´¢Î»Öà E:/APMServ5.2.6/www/htdocs/GetFootballContent/ £¨²»ÒªÍü¼Ç×îºóµÄбÏߣ¡£¡£¡£©£¬
6.ÔÚÈÎÒâä¯ÀÀÆ÷ÖÐÔËÐÐE:/APMServ5.2.6/www/htdocs/GetFootballContent/Ŀ¼ÏÂÄãÏëdebugµÄphpÎļþ£¬ÔÚurlºóÃæ¼ÓÉÏ ?XDEBUG_SESSION_START=debug £¨debug¾ÍÊÇIde Identification String£©¡£


Ïà¹ØÎĵµ£º

phpÐÂÎÅÄÚÈÝ·ÖҳʵÀý£¨smarty Ä£°å£©

ÏîÄ¿ÐèÒªÓõ½ ÐÂÎÅÄÚÈÝÒ³ ʵÏÖ·ÖÒ³¹¦ÄÜ£¬Ëæ±ãдÁËһϡ£
¸ø´ó¼Ò×ö¸ö²Î¿¼£¬Ð´µÄ²»ºÃ»¹ÍûÁ½Ⱑ£¡
//ÐÂÎÅÄÚÈÝ·ÖÒ³¿ªÊ¼ The page next for news content start
$nextpage="<!--{nextpage}-->";//·ÖÒ³±êʾ.
$content=explode($nextpage,$content);
$sum=count($content);
$mpurl=$_SERVER['PHP_SELF']."?newsid ......

phpÎļþÉÏ´«¼òµ¥Ê¾Àý

<?php
/*
Å׸öש£¬¾ßÌåÒª×ö³ÉʲôÑù×Ô¼º×ö¡£
*/
if(isset($_FILES['userfile']['tmp_name'])){
$userfile = $_FILES['userfile']['tmp_name']; //±£´æÔÚϵͳµÄÁÙʱλÖÃ
$userfile_name = $_FILES['userfile']['name'];//ÎļþÃû
$userfile_size = $_FILES['userfile'][ ......

PHPͼƬ´¦ÀíÀà


<?php
/*
ͼƬ´¦Àíº¯Êý¹¦ÄÜ£ºËõ·Å¡¢¼ôÇС¢Ïà¿ò¡¢Ë®Ó¡¡¢Èñ»¯¡¢Ðýת¡¢·­×ª¡¢Í¸Ã÷¶È¡¢·´É«
´¦Àí²¢±£´æÀúÊ·¼Ç¼µÄ˼·£ºµ±ÓÐͼƬÓиĶ¯Ê±×Ô¶¯Éú³ÉÒ»ÕÅÐÂͼƬ£¬ÃüÃû·½Ê½¿ÉÒÔ¿¼ÂÇÔÚԭͼƬµÄ»ù´¡ÉϼÓÉϲ½Ö裬ÀýÈ磺ͼƬÃû³Æ+__µÚ¼¸²½
*/
class picture{
var $PICTURE_URL;//Òª´¦ÀíµÄͼƬ
var $DEST_URL="temp__01.jpg" ......

PHPÔËÐл·¾³ÔÚWindowsϵÄÅäÖÃ(MySQLÅäÖã©

 Èí¼þÀë²»¿ªÊý¾Ý¿â£¬¶øPHP×î³£ÓõÄÊý¾Ý¿âÊÇMySQL¡£MySQLÊý¾Ý¿â·Ö·þÎñ¶ËºÍ¿Í»§¶Ë¡£
MySQL·þÎñ¶ËµÄ°²×°£º
(1)µã»÷MySQL°²×°°ü£¨´Ë´¦µÄ°²×°³ÌÐòΪmysql-5.0.18-win32.zip)
(2) ĬÈÏÊÇTypical,Èç¹ûÏëÐ޸ݲװ·¾¶µÄ»°Ò²¿ÉÒÔÑ¡Ôñcustom.
×¢Òâ:°²×°mysqlµÄ·¾¶ÖÐ,²»Äܺ¬ÓÐÖÐÎÄ!
(3)µã»÷intall¿ªÊ¼°²×°
(4)Ìø¹ý×¢²á
(5 ......

php stdClass


ÎÊÌ⣺
ÄãÏë´´½¨Ò»¸ö¶ÔÏ󣬲¢ÔÚÆäÖÐÌí¼ÓһЩÊôÐÔ£¬µ«ÊÇÄãÈ´²»Ïë°ÑËü×÷Ϊһ¸öÃ÷È·µÄÀàÕýʽµØ¶¨ÒåËü¡£ÕâÒ»µãÔÚһЩÇé¿öÏÂÊÇÏ൱ÓÐÓõģ¬ÀýÈçµ±ÄãÐèÒª¶¨ÒåÒ»¸ö·½·¨À´·µ»Ø´øÓÐijЩÊôÐÔ£¨²»È·¶¨µÄ£©µÄ¶ÔÏóʱ£¬¾ÍÈçͬ´Ómysql_fetch_object( ) »òÕß imap_header( )µÄʹÓÃÒ»Ñù¡£
һάÊý×é,ÎÒÏÖÔÚÌرðϲ»¶°ÑËüд³É¶ÔÏó,ÒòΪ¼üÅÌ´ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ