[Install PHPUnit] Installing PEAR and PHPUnit on WAMP and Windows 7 (no longer maintained from PHPUnit 3.7)

First of all, thanks to @Sebastian Bergmann for reminding and sorry for my careless about this reblog because End of Life for PEAR Installation Method to PHPUnit from github and The package PHPUnit is not maintained anymore and has been superseded. Package has moved to channel pear.phpunit.de, package PHPUnit from pear.php.net.

So this blog should be a reblog of installing PHPUnit(<3.7) in Windows7 from http://thecancerus.com/ and I found it was still useful for understanding the theory of configuration of php(in wamp) and the environment variables.

The newest manual installation of PHPUnit in windows can be found its documentation.

Continue reading


[Windows] hardware link

The command fsutil used to create a hardware link in windows.

Attention: the hardware link can only created in the same volume(disk).

The commands:
1. to create a hardlink
fsutil hardlink create NewFileName ExistingFileName
2. to list the hardlink
fsutil hardlink list FileName

Capable platforms:
Windows 7, Windows 8, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Vista

Source from Microsoft technet hardlink :

Editing hosts file error

Background :

When editing the hosts file in windows7 with notepad++, an error appears “please check if this file is opened in another program”.

Capture of error :

Solution :

Launch notepad++ with role of administrator, and re-open hosts by notepad, it could be saved.
But how could we launch an application(ex. notepad) automaticly by administrator in windows7 ?

Waiting for the answers !

Window7, Tomcat6/Wamp auto start when system boot

Tomcat6 is refused by default by Window7.

If you wanna it launch automaticlly, you have to do like this(my system is in French).

It works for wamp too.

Right click Tomcat icon, choose “Proprities”, and then follow the schema below :

Choose tag “compatibility”, and click “Modify parameter for the other users”

Continue reading