Support for the PE file format? – PHP

  php

Q(Question):

Hi,

I’d like to write a PHP script that opens a Windows binary file (EXE,
DLL, OCX, etc.), and extracts its version number, if any. Does anyone
know if a module is available to do this?

Thank you
JD.

A(Answer):

Jane Doe wrote:

I’d like to write a PHP script that opens a Windows binary file (EXE,
DLL, OCX, etc.), and extracts its version number, if any.

You can get info about PE format here
http://www.microsoft.com/whdc/hwdev/…re/PECOFF.mspx

–= my mail box only accepts =–
–= Content-Type: text/plain =–
–= Size below 10001 bytes =–

A(Answer):

On 23 Feb 2004 19:23:55 GMT, Pedro Graca <he****@hotpop.com> wrote:

You can get info about PE format here
http://www.microsoft.com/whdc/hwdev/…re/PECOFF.mspx

Thx, but I neither have the time nor the skills to write a PHP module
that will extract those infos. I was wondering if someone had already
done this πŸ™‚

JD.

A(Answer):

Jane Doe a Γ©crit le 23/02/2004 :

Thx, but I neither have the time nor the skills to write a PHP module
that will extract those infos. I was wondering if someone had already
done this πŸ™‚

If so I don’t imagine what you want this for…

A(Answer):

On Mon, 23 Feb 2004 19:58:34 +0100, Jane Doe <ja******@acme.com> wrote:

I’d like to write a PHP script that opens a Windows binary file (EXE,
DLL, OCX, etc.), and extracts its version number, if any. Does anyone
know if a module is available to do this?

If it’s any help, the Win32 call to do this is GetFileVersionInfo. (Which
doesn’t help if you want a pure PHP version rather than write a Windows DLL to
call it).


Andy Hassall <an**@andyh.co.uk> / Space: disk usage analysis tool
<http://www.andyh.co.uk> / <http://www.andyhsoftware.co.uk/space>

A(Answer):

On Mon, 23 Feb 2004 22:35:38 +0100, Jedi121
<je*********@free.fr.Removethis> wrote:

If so I don’t imagine what you want this for…

I was asking whether someone knew of a module that can extract
information from a PE binary. I’d like to make a list of binaries in a
directory, and display their version number.

Thx
JD.

A(Answer):

On Mon, 23 Feb 2004 21:46:39 +0000, Andy Hassall <an**@andyh.co.uk>
wrote:

If it’s any help, the Win32 call to do this is GetFileVersionInfo. (Which
doesn’t help if you want a pure PHP version rather than write a Windows DLL to
call it).

Thx for the ip πŸ™‚ I can’t call a DLL because the server is running
Unix. I know, it’s pretty unlikely there’s a PHP module that can read
PE files, even when the script is running under Unix… but I was
asking just in case.

JD.

LEAVE A COMMENT