|
Saturday, October 11, 2008
PHP and FMP
Get Expand it and copy it into Copy Edit php.ini. Uncomment and modify include_path = ".:/usr/local/php/includes" I set up eclipse by copying the features and plugins after downloading from http://www.eclipse.org/pdt/downloads/ I couldn't get the update site to work (mysterious errors.) Finally, after messing with it for ages, I concluded that Eclipse PDT doesn't work with Ganymede. I now use PHPEclipse. For debugging, we need xdebug. Oopsie. Must install pear to get pecl to get xdebug. So, curl http://pear.php.net/go-pear > go-pear.php sudo php -q go-pear.php Let the script update php.ini. And don't forget to update PATH like the script told you to. Then it's sudo pecl install xdebug And do NOT do what it says (You should add "extension=xdebug.so" to php.ini") Instead, add this: [xdebug] zend_extension=/usr/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so Then confirm that it's working by doing php -mxdebug will show up both under [PHP Modules] and [Zend Modules] Get phpUnit installed. See Sebastian Bergmann's site: http://www.phpunit.de/manual/3.4/en/installation.html sudo pear channel-discover pear.phpunit.de sudo pear install phpunit/PHPUnit |
Twitter UpdatesArchives |