Is getting the version of a exe possible with php? I\'d like to print the version of a file that can be downloaded...
Windows exe and php is running on linux server<
I am assuming you're not on Windows, and you mean the Version information that can be stored in Windows executables, and pops up in the properties dialog for such a file in Windows Explorer.
This information seems to be stored in the VS_VERSION_INFO
block of an executable (see for example this question). I don't know any tool that extracts this information in a simple way, not even on Windows itself.
There seem to be several ways to get hold of this information via the Windows API (See a Perl example here) but I can't see any approach that works "from scratch" by just parsing the executable.
If you dig around a bit, you might be able to find a file format description that explains how to read the VS_VERSION_INFO
information from an EXE file. Be prepared for a lot of work to get this to work reliably, though.
Be prepared to invest a lot of time and effort if you want to do this.