Support for the PE file format?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jane Doe

    Support for the PE file format?

    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.
  • Pedro Graca

    #2
    Re: Support for the PE file format?

    Jane Doe wrote:[color=blue]
    > 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.[/color]

    You can get info about PE format here

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

    Comment

    • Jane Doe

      #3
      Re: Support for the PE file format?

      On 23 Feb 2004 19:23:55 GMT, Pedro Graca <hexkid@hotpop. com> wrote:[color=blue]
      >You can get info about PE format here
      > http://www.microsoft.com/whdc/hwdev/...re/PECOFF.mspx[/color]

      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.

      Comment

      • Jedi121

        #4
        Re: Support for the PE file format?

        Jane Doe a écrit le 23/02/2004 :[color=blue]
        > 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 :-)[/color]

        If so I don't imagine what you want this for...


        Comment

        • Andy Hassall

          #5
          Re: Support for the PE file format?

          On Mon, 23 Feb 2004 19:58:34 +0100, Jane Doe <jane.doe@acme. com> wrote:
          [color=blue]
          >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?[/color]

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

          --
          Andy Hassall <andy@andyh.co. uk> / Space: disk usage analysis tool
          <http://www.andyh.co.uk > / <http://www.andyhsoftwa re.co.uk/space>

          Comment

          • Jane Doe

            #6
            Re: Support for the PE file format?

            On Mon, 23 Feb 2004 22:35:38 +0100, Jedi121
            <jedi121news@fr ee.fr.Removethi s> wrote:[color=blue]
            >If so I don't imagine what you want this for...[/color]

            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.

            Comment

            • Jane Doe

              #7
              Re: Support for the PE file format?

              On Mon, 23 Feb 2004 21:46:39 +0000, Andy Hassall <andy@andyh.co. uk>
              wrote:[color=blue]
              > If it's any help, the Win32 call to do this is GetFileVersionI nfo. (Which
              >doesn't help if you want a pure PHP version rather than write a Windows DLL to
              >call it).[/color]

              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.

              Comment

              Working...