Using PHPEdit With PHP4
PHPEdit is a great tool but by default PHPEdit (In this case ver2.10) installs with PHP5, and if like me, you need to develop with PHP4 then you’ll need to change the version of PHP PHEdit uses to debug.
Assuming that you’ve just installed PHPEdit then,
1) Get the required version of PHP, PHP 4.4.6
2) Extract the contents of the download to a permanent folder e.g. “PHP4Folder”, There is no need to do any sort of installation beyond this.
3) You will need to get the XDebug module if it is not already in the PHP4Folder/extensions folder and add it there.
4) Rename php.ini-dist to php.ini and open it in notepad.
Add the following lines to the php.ini file
zend_extension_ts=”./extensions/php_xdebug.dll”
xdebug.remote_enable=on
xdebug.remote_autostart=on
xdebug.profiler_enable_trigger=on
xdebug.profiler_enable=on
xdebug.profiler_output_dir=”./profiler”
xdebug.profiler_output_name=”timestamp”p”
and save it.
6) Open PHPEdit and go to the Debugger Settings,
Change “CGI php executble” to point at php.exe in the “PHP4Folder”.
restart PHPEdit and your all set to go.
7) To make sure that your using the correct version of PHP create a small script calling phpinfo(), looking at the output will allow you to confirm which version of PHP PHPEdit is using.