Archive for the 'Miscellaneous @en' Category

Install PHPUnit on WAMP

Carl on jun 10th 2012

Before you can install PHPUnit you need to have installed PEAR. If that is not the case , you can do the following:

  • Go to wamp-directory, b.v. :
    C:\>cd wamp\bin\php\php5.3.0
  • To install PEAR, execute the following command:
    C:\wamp\bin\php\php5.3.0>go-pear.bat
    You will be asked several questions which you can leave to the default value.
  • The next thing you will need to do is register PEAR environmental variables in the registry. Therefore you can execute C:\wamp\bin\php\php5.3.0>PEAR_ENV.reg (Perhaps not a bad idea to backup your current registry!). Now you can call PEAR everywhere on the command line
  • If you cannot call PEAR on the command line, you will need to add the PEAR directory to the Windows environmental ‘Path’ variable. You can find that one in: System Properties -> Advanced-> Environment Variables. Select the ‘Path’ variable, click on ‘Edit’ , and add to the end of the line a ‘;’ and the path to the PEAR directory which in my case is: C:\wamp\bin\php\php5.3.0

Install PHPUnit

  • Register the PHPUnit channel in pear C:\wamp\bin\php\php5.3.0>pear channel-discover pear.phpunit.de
  • Install PHPUnit C:\wamp\bin\php\php5.3.0>pear install phpunit/PHPUnit
    of php5.3.0>pear install –alldeps phpunit/PHPUnit

If you get a warning your PEAR verzion is not high enough, you can upgrade your PEAR version:
...php5.3.0>pear upgrade pear

Filed in Miscellaneous @en,PHP @en | Reacties uitgeschakeld

Windows – Disable Getting started/Welcome screen

Carl on jun 7th 2012

1. Start > Run
2. Type in ‘regedit’ and press enter
3. Go down the tree HKEY_CURRENT_USER > Software > Microsoft > Windows > CurrentVersion > Run
4. One of the entries on the right is called ‘Welcome Center’. Delete it, and restart!

Filed in Miscellaneous @en | Reacties uitgeschakeld