Wednesday, July 16, 2014

Enable pgpass under Windows 7

Last year I have written a post about enabling pgpass under Windows XP. Today I repeated the procedure for Windows 7.

Basically everything worked as before, with the following exception - the APPDATA directory in Win 7 is different.

What I did first was to check the name of the user running PostgreSQL server process. Then log in as that user and find out where is the APPDATA directory for that user.

echo %APPDATA%

From that point on, just follow the instructions in the previous post.

Good luck!

Sunday, June 22, 2014

PHPUnit 4 on Windows 7

  1. Download phpunit.phar from -
  2. Find your php bin directory. In my case it is: C:\Program Files (x86)\Zend\ZendServer\bin
  3. Add this directory to your path.
  4. In the same php bin directory create .bat file with the following content:
    set PHP_BIN=php.exe
    set FILE_PATH="C:\path\to\phpunit_phar_file\phpunit.phar"
    %PHP_BIN% %FILE_PATH% %*
  5. Done. phpunit will be available from any location.