很好用的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。
相关文档:
适用于最新的版本PHP-5.2.11和APACHE2.2
下载地址
PHP:http://cn2.php.net/get/php-5.2.11-Win32.zip/from/a/mirror
PHP直接下载http://cn.php.net/distributions/php-5.2.11-Win32.zip
APACHE http://labs.xiaonei.com/apache-mirror/httpd/httpd-2.2.14-win32-src.zip
1、将php解压到C:\php目录下
2、将apache安装 ......
1.
Download Apache for windows MSI
file, and run it
By
default, port is 80, root dir is %apache_dir%/htdocs. You can update the
settings in conf/httpd.conf file
2. If Apache Service can't be installed in "Control Panel > Admin Tools > Services&quo ......
原文链接:http://www.williamlong.info/archives/1846.html
在Windows IIS
6.0下配置PHP
,通常有CGI
、ISAPI
和FastCGI
三种配置方式,这三种模式都可以在IIS
6.0下成功运行,下面我就讲一下这三种方式配置的区别和性能上的差异。
1、CGI
(通用网关接口/Common Ga ......
<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
<input type="button" onclick="test();" value="提交"/>
<script type="text/javascript">
function test(){
var valid = {
& ......
本文转载自:http://www.binzhou123.com/article/html/6038.html
滨州站长网最新消息:
Apache是一种功能强大得Web服务器。如今,Internet上无数运行在Linux上得Apache服务器正为Web世界得日益繁荣提供着有力得支撑。本文将向读者介绍如何在UbuntuLinux系统迅速搭建ApacheWeb服务器。
尽管Ubuntu是一种新兴得 ......