php-windows Digest 22 Sep 2009 09:38:32 -0000 Issue 3700
Topics (messages 29616 through 29620):
Coloured console output support for windows.
29616 by: Richard Quadling
Re: [PHP-WEBMASTER] PHP 5.1/5.2 or newer for Windows 7 64 Bit
29617 by: Lester Caine
29618 by: Pierre Joye
Re: [PHP-DOC] Coloured console output support for windows.
29619 by: Hannes Magnusson
29620 by: Richard Quadling
Administrivia:
To subscribe to the digest, e-mail:
php-windows-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-windows-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-wind...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
Hi.
As previously mentioned, there is a tool for Windows XP+ called
ANSICON [1] which can be loaded via the registry or manually and
provides support for ANSI coloured output at the console.
Whilst editing the registry is not something many people actually like
doing, it can be done quite easily using the REG command from the
Windows Resource Toolkit.
REG ADD "HKLM\Software\Microsoft\Command Processor" /v AutoRun /t
REG_SZ /d "C:\Utils\ANSICon.exe -p"
Another useful feature is that ANSICON maintains an environment
variable which holds the current screensize ...
ANSICON=200x9999 (200x100)
200x9999 is the window size
200x100 is the current visible portion.
So, for text-tabled output, you can tailor the size to fit. Useful for
interactive console apps.
Regards,
Richard.
[1] http://adoxa.110mb.com/ansicon/index.html
--
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling
--- End Message ---
--- Begin Message ---
Richard Quadling wrote:
That's the wrong place to ask support.
There is no 5.1/5.2 x64 support but for 5.3. However windows x64 (no
matter the version) can run 32bit applications just fine. See
http://windows.php.net for the downloads (QA page for the x64
versions).
Cheers,
On Sat, Sep 19, 2009 at 6:47 PM, Victoria Ceolin <lod...@sympatico.ca> wrote:
I would like to know if there is a version for Windows 7 64 bit of PHP that
I can download. If so please provide the web address and the file name so
that I can download it. Thanks.
By saying that 64bit can run 32bit "just fine", is implying (or at
least I infer) that there is no advantage for PHP on the 64bit
platform over the 32bit.
What are the plans for those wanting to keep up with the Jones'?
Switch to Linux ;)
Seriously ... the problem is not simply with PHP. You need a compatible
version of Apache as well - if that is your preferred web server.
http://www.apachelounge.com/viewforum.php?f=10 is the home for that
until such time as it becomes available in the main stream sites.
Personally I've only just got Vista64 running, but I'm only planning on
64bit Linux on production sites, as many of them will not allow Vista in
any form. Windows7 is another can of worms, and I don't see my customers
worrying about it any time soon.
--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php
--- End Message ---
--- Begin Message ---
hi Richard,
On Mon, Sep 21, 2009 at 12:34 PM, Richard Quadling
<rquadl...@googlemail.com> wrote:
> What are the plans for those wanting to keep up with the Jones'?
The next major version (be 5.4 or 6.0) should support x64 in a stable
way. For now it is still experimental as many libraries have not been
fully tested on windows x64 or do not support it at all. The core
itself may need some tweaks as well, but it supports x64 already for
most of the core features.
Cheers,
--
Pierre
http://blog.thepimp.net | http://www.libgd.org
--- End Message ---
--- Begin Message ---
On Mon, Sep 21, 2009 at 12:59, Richard Quadling
<rquadl...@googlemail.com> wrote:
> doing, it can be done quite easily using the REG command from the
> Windows Resource Toolkit.
>
> REG ADD "HKLM\Software\Microsoft\Command Processor" /v AutoRun /t
> REG_SZ /d "C:\Utils\ANSICon.exe -p"
Right, but that has to be done when installing the application, not
every time phd.bat is executed.
And we would also have to detect if the system supports it rather then
blindly polluting the registry.
Plus, afaik, the PEAR installer doesn't support doing such things.
-Hannes
--- End Message ---
--- Begin Message ---
2009/9/21 Hannes Magnusson <hannes.magnus...@gmail.com>:
> On Mon, Sep 21, 2009 at 12:59, Richard Quadling
> <rquadl...@googlemail.com> wrote:
>> doing, it can be done quite easily using the REG command from the
>> Windows Resource Toolkit.
>>
>> REG ADD "HKLM\Software\Microsoft\Command Processor" /v AutoRun /t
>> REG_SZ /d "C:\Utils\ANSICon.exe -p"
>
> Right, but that has to be done when installing the application, not
> every time phd.bat is executed.
Agreed. And the ANSICON instructions could easily be amended to show this.
> And we would also have to detect if the system supports it rather then
> blindly polluting the registry.
"blindly polluting the registry" ?
>From cmd /? ...
"If /D was NOT specified on the command line, then when CMD.EXE starts, it
looks for the following REG_SZ/REG_EXPAND_SZ registry variables, and if
either or both are present, they are executed first.
HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\AutoRun
and/or
HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun"
This is "blindly polluting", but a completely standard and supported
facility, albeit an obscure one.
As for detection, once ANSICON is loaded, the ANSICON environment variable.
But maybe ANSICon needs a small installer which has the option of
doing this (Jason - possible?) automatically for those too nervous of
editing registry.
>
> Plus, afaik, the PEAR installer doesn't support doing such things.
>
!is_null(getenv('ANSICON')) ?
> -Hannes
>
I think that whilst windows no longer has coloured console output as
standard, a free alternative is a viable option.
The other option is to disable coloured output when on windows, but if
that was the case, I would like the option of having a mechanism to
enable this without having to add it to the command line every time -
yet another env_var?
The source is available. Jason has been very receptive to the issues
that I've raised.
Richard
--
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling
--- End Message ---