Colorizing Windows command line output from PHP
Download dynwrap.dll from : http://www.script-coding.com/dynwrap95.zip Then extract it to %systemroot%\system32 directory and then run following command in command line: regsvr32.exe “%systemroot%\system32\dynwrap.dll” You’ll get a success message which means dynwrap.dll is registered. Then you can use it this way : $com = new COM(‘DynamicWrapper’); // register needed features $com->Register(‘kernel32.dll’, ‘GetStdHandle’, ‘i=h’, ‘f=s’, ‘r=l’); $com->Register(‘kernel32.dll’, ‘SetConsoleTextAttribute’, ‘i=hl’, … Read more