Marius III wrote:[color=blue]
> Hi there,
>
> I want to get the file version of a file in PHP.
>
> Do somebody have the code for this?
>
> Thanks alot!
>[/color]
What do you mean? If you mean the file creation date/last modified date, you
can use the filectime/filemtime functions.
Marius III wrote:[color=blue]
> Hi there,
>
> I want to get the file version of a file in PHP.
>
> Do somebody have the code for this?
>
> Thanks alot![/color]
Marius III wrote:[color=blue]
> No, I need to get the FileVersion.
> For example an EXE files version can be: 2.0.0.260 and a newer
> version of this EXE can be 2.0.0.269.
>[/color]
Since you are mentioning EXE files, I assume that you need this for a
Windows environment.
Another option, without using COM, would be to open the binary file and
search for the pattern F\0i\0l\0e\0V\0 e\0r\0s\0i\0o\0 n\0\0\0\0\0
The version is right behind that string:
>> I want to get the file version of a file in PHP.[color=blue][color=green]
>>
>> Do somebody have the code for this?
>>
>> Thanks alot!
>>[/color]
>
>What do you mean? If you mean the file creation date/last modified date, you
>can use the filectime/filemtime functions.[/color]
filectime does not return a "file creation date". Many operating
systems do not even maintain a file creation date. On the UNIX
variants that do keep a file creation date (only on UFS2 filesystems),
that isn't what filectime returns.
Comment