很好用的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。
相关文档:
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 地址不能维持状态。
通过在服务器上存储用户信息以便随后使用,PHP session 解决了这个问题(比如 ......
一个公司简单的面试题:
1. 简答题
(1)一些相关LINUX方面的指令操作eg: mkdir 创建目录 touch 创建文件夹以及修改权限chmod之类等等
(2)简述不同版本的PHP有什么区别,试举例简述.
(3),简述接口技术的好处,试举例简述.
(4)如何使用下面的类,并解释下面什么意思?
class test{
function ......
<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是一种新兴得 ......