I couldn't get the above instructions to work.. but here's how I got a PHP
debugger into PSPad.


_1)_ Grab a copy of PHP from php.net(I chose the zipped file over the exe
as it's a no fuss solution)


_2)_ Unzip the PHP contents - I placed it in [i]C:\Program
Files\Webdev\PHP-5.2.6[/i]


_3)_ Download the debugger module from http://www.xdebug.org/ (make sure
the version you download is compatible with your version of PHP - in this case,
I downloaded: Xdebug Windows Module PHP 5.2.1-5.2.6)


_4)_ Place the debugger module file (*php_xdebug-2.0.3-5.2.5.dll*)
inside the ext folder of your PHP eg: [i]C:\Program
Files\Webdev\PHP-5.2.6\ext[/i]


_5)_ Edit the php.ini file (or if it's a brand new php, then rename
php.ini-dist to php.ini) and add the following lines (replace the directory
paths with your own):

[i]extension_dir = "C:\Program Files\Webdev\PHP-5.2.6\ext"
zend_extension_ts="C:\Program
Files\Webdev\PHP-5.2.6\ext\php_xdebug-2.0.3-5.2.5.dll"[/i]


_6)_ Inside PSPad, click Settings - Highlighter Settings. Click on the PHP
option, click on the Compiler tab. And set the locations. Example:

Compiler: *C:\Program Files\Webdev\PHP-5.2.6\php.exe*
Parameters (with the quotes): *"%File%" *

Click on OK and voila! you can compile your scripts by Ctrl+F9 or clicking File
- Compile. Make sure your LOG window is visible (Window - Show/Hide Log Window)
to see your results.



Hope it helps,
Kristy

P.S: I also use a great little webserver called QuickPHP by Zach Saw - only
500kb and no installation. Just place it's single exe file within the PHP
folder, run and it's serving up your files. Gotta love it -
http://tinyurl.com/quickphp

-- 
<http://forum.pspad.com/read.php?2,35782,47642>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem