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

ºÜºÃÓõÄphpÖ´ÐÐʱ¼ä·ÖÎö¹¤¾ßwebgrind

ÒÔǰ·ÖÎöxdebugÓõÄÊÇ£¨wincachegrind£©http://sourceforge.net/projects/wincachegrind/
ÏÖÔÚÖ±½Ó°²×°webgrindÀ´µ÷ÊÔËÙ¶È»á¸üºÃ
http://xdebug.org/
ÏÂÔØµØÖ·£º
Source:
xdebug 2.0.3
Windows modules:
PHP 5.1.2-5.1.7
PHP 5.2.1-5.2.6
PHP 5.3.0dev
windows
±à¼­php.ini£¬ÏÈ×¢Ê͵ôzend£º
[Zend]
;zend_extension_ts = “D:\Xampp\php\zendOptimizer\lib\ZendExtensionManager.dll”
ÆôÓÃx-debug
[xdebug]
zend_extension_ts = “D:\Xampp\php\ext\php_xdebug-2.0.0-5.2.2.dll”;±ØÐëΪÍêÕû·¾¶
xdebug.profiler_enable_trigger = 1
xdebug.profiler_output_dir=”D:\Xampp\tmp\xdebug”
linux
°²×°xdebugÀ©Õ¹
sudo pecl install xdebug
±à¼­php.ini£¬ÆôÓÃx-debug
[xdebug]
zend_extension_ts = “/usr/lib/php5/xdebug.so” ;±ØÐëΪÍêÕû·¾¶
xdebug.profiler_enable_trigger = 1
xdebug.profiler_output_dir=”/tmp”
webgrind
£¨http://code.google.com/p/webgrind/ £©
ÏÂÔØµØÖ·£ºhttp://webgrind.googlecode.com/files/webgrind-release-0.81.zip
ÏÂÔØwebgrind£¬½âѹËõµ½webĿ¼
Ê×ÏÈ·ÃÎÊÐèÒªÓÅ»¯µÄphp³ÌÐò£¬get/postÇëÇóÖмÓÈëXDEBUG_PROFILE
ÀýÈçinfo.php£¬http://localhost/info.php?XDEBUG_PROFILE
È»ºó·ÃÎÊ£ºhttp://localhost/webgrind/
ĬÈÏauto£¬¼´Îª¸Õ¸ÕÇëÇóµÄÎļþprofile£¬[update]£¡
³ÌÐò²»¼æÈÝIE£¨±¾»ú²âÊÔwinxp+ie6£©£¬Èç¹ûµãÁËupdateÖ®ºóºÁÎÞ·´Ó¦£¬ÇëʹÓÃfirefox¡£


Ïà¹ØÎĵµ£º

IIS+PHP+MySQLÅäÖÃ ÄÏÈý·½


      ÔÚÍøÉÏÕÒÁ˺ܶàIIS+PHPµÄÅäÖõķ½·¨£¬ÊÔ¹ýÖ®ºóºÜ¶à¶¼²»ÄܴﵽЧ¹û¡£ÓÚÊÇ×ܽáÁ˴󲿷ֵÄÎÄÕºó¾ÍµÃ³öÁËÕâÑùµÄ·½·¨£º£¨±¾´Î²Ù×÷ϵͳÒÔWin2000ΪÀý£¬Èç¹ûÄãÒª¸ÄΪÆäËüϵͳ¾Í°Ñϵͳ¸ùĿ¼±äһϾÍOkÁË£©
Ò»¡¢ÏÂÔØ±ØÐëµÄ³ÌÐò£º
(1) Ïȵ½PHPµÄ¹Ù·½ÍøÕ¾ÏÂÔØÒ»¸öPHP£¨±¾ÎľÍÒÔPHP 4.4.2ΪÀý£©¡£ ......

phpѧϰ±Ê¼Ç£¨12£©:PHP+MYSQLÁôÑ԰壨ÉÏ

require()  Óë  require_once()
    
      ͨ³£·ÅÔÚ PHP ³ÌÐòµÄ×îÇ°Ãæ£¬PHP ³ÌÐòÔÚÖ´ÐÐǰ£¬¾Í»áÏȶÁÈë require
ËùÖ¸¶¨ÒýÈëµÄÎļþ£¬Èç¹û³öÏÖ´íÎóÊÇÖÂÃüµÄ¡£
nclude()  Óë  include_once()
    
    &n ......

php ÑéÖ¤Âë

checkcode.php
====================
<?php
session_start();
$funcs = array('imagecreatetruecolor','imagecolorallocate','imagefill','imageline','imagedestroy','imagecolorallocatealpha','imageellipse','imagepng');
if(!function_exists('ob_gzhandler'))
    ob_clean();
 //crea ......

PHP»ù±¾·ûºÅ¼°·½·¨

×¢½â·ûºÅ:
         // µ¥ÐÐ×¢½â    
         /*      */    ¶àÐÐ×¢½â
ÒýºÅµÄʹÓÃ
         ’   ’ µ ......

phpѧϰ±Ê¼Ç£¨12£©:PHP+MYSQLÁôÑ԰壨ÏÂ

1¡¢Ìá½»±íµ¥JavascriptÑéÖ¤
<form action="" method="post" name="myform" onsubmit="return CheckPost();">
SCRIPT language=javascript>
function CheckPost()
{
 
if (myform.user.value=="")
 {
  alert("ÇëÌîдÓû§");
  myform.user.focus();
  return f ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ