易截截图软件、单文件、免安装、纯绿色、仅160KB

PHP调试的一般步骤学习记录

    本文只是在尝试PHP调试后获得的若干经验的记录。
    PHP的IDE调试都比较痛苦,一般很难有集成的IDE。在习惯用MyEclipse调试JSP应用后,再去开发PHP程序总觉得特别麻烦,其最大原因可能就是调试环境的安装和配置。笔者尝试过N次,什么xDebug,DBG Script,Zend Debugger,统统整了一遍,经常崩溃的,也放弃过好几次,真tmd的xxx。以下记录在Zend Studio for Eclipse 配置 Zend Debugger的步骤,供日后参考,也供过客阅览。
1,下载 Zeng Debugger
目前(20100303)有效地址是:
http://downloads.zend.com/pdt/server-debugger/ZendDebugger-5.2.14-cygwin_nt-i386.zip
下载得到的包中有个README.txt,说的比较清楚:
Zend Debugger installation instructions
---------------------------------------
1. Locate ZendDebugger.so or ZendDebugger.dll file that is compiled for the
   correct version of PHP (4.3.x, 4.4.x, 5.0.x, 5.1.x, 5.2.x) in the
   appropriate directory.
2. Add the following line to the php.ini file:
   Linux and Mac OS X:     zend_extension=/full/path/to/ZendDebugger.so
   Windows:                zend_extension_ts=/full/path/to/ZendDebugger.dll
   Windows non-tread safe: zend_extension=/full/path/to/ZendDebugger.dll
  
   (*) the windows non-thread safe is used only with Zend Core 2.0
  
3. Add the following lines to the php.ini file:
   zend_debugger.allow_hosts=<ip_addresses>
   zend_debugger.expose_remotely=always
4. Place dummy.php file in the document root directory.
5. Restart web server.
2,按照上面的说明,把相关版本的dll放入PHP的安装目录的ext下
ZendDebugger.dll要选择与php版本相匹配的
3,把debugger带的dummy.php复制到apache网站根目录,dummy.php主要用来与浏览器安装的Zend Studio Toolbar通信
4,配置php.ini
[Zend]
zend_extension_ts=D:/PHP/ext/ZendDebugger.dll
zend_debugger.allow_hosts=127.0.0.1/32   【本机IP地址/32】
zend_debugger.a


相关文档:

win7下IIS 用FastCGI模块 配置PHP 共有0条回复

最近用win7了,弄了个激活码,也不知道能用到什么时候,心里多少是有点忧虑的,没个底,管他的呢,现在能用就先用着,以前也没玩怎么过Vista,不过感觉win7界面上还是有点像Vista的,有些功能上也差不多,不过感觉用这个win7还真不错,我也只是相对XP的感觉,当然了,win7的硬盘空间倒是占用了不老少我19G的C盘装完后就还剩 ......

php urlencode()

在PHP中有urlencode()、urldecode()、rawurlencode()、rawurldecode()这些函数来解决网页
URL编码解码问题。
在ASP的时候URL编码解码很是恼火,Server.urlencode不太好用,遇到utf-8编码的地址更是麻
烦。你要获取百度、Google点击到网站的网址链接中的关键字,要写上一堆自定义函数来得到urldecode的效果。
摘录一篇关 ......

php学习笔记

第一章   PHP概述
1、  基本语法
a)         要把php嵌入页面,可以把它放在PHP标签内
<?php       ?>
b)         在body标签结束之前,插入php代码
c)     ......

PHP5和MySQL学习 2010.3.2

一项目开发
需求分析、系统分析、系统设计、程序开发、集成和测试
二、项目分工
程序设计、共用组件设计、数据库、美工、文件编写、数据输入、安装维护客服
三、MySQL
速度快,支持多线程与多用户同时在线的关系数据库管理系统
基本的MySQL命令的记忆
四、HTML
基本html的语句 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号