Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting Version Number of a File

Status
Not open for further replies.

AndyWatt

Programmer
Oct 24, 2001
1,288
0
0
GB
Is there any function in PHP that will extract the version number from a windows .exe file stored on a site?

I'd like to be able to upload a new version of a program to a website and have the site display the version number, without me having to change any code ...

Andy
--
"Logic is invincible because in order to combat logic it is necessary to use logic." -- Pierre Boutroux
 
Pretty sure there isnt anything which will do that off the shelf.

filetype() won't
filemtime is mod time
filectime is creation time ...

long list but basically no . (open to being proven wrong here)

unless you write something yourself.

______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
Phooey.

So it looks like I'm going to have to find the offsets of version info in the file then.

Thanks for your rely, KarveR.

Andy
--
"Logic is invincible because in order to combat logic it is necessary to use logic." -- Pierre Boutroux
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top