Re: Accessing Windows File Comments

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 25 February 2010 15:16, Richard Quadling <rquadling@xxxxxxxxxxxxxx> wrote:
> On 25 February 2010 14:59, Floyd Resler <fresler@xxxxxxxxxxxxx> wrote:
>> One of my users has asked if I can display comments with a file list on their site.  So I thought I might be able to use the comments from the properties of the file.  Is there any way I can access this from PHP?  The files are actually stored on a Linux box.
>>
>> Thanks!
>> Floyd

Using LADS on a file I just added a title and summary to ...

LADS - Freeware version 4.10
(C) Copyright 1998-2007 Frank Heyne Software (http://www.heysoft.de)
This program lists files with alternate data streams (ADS)
Use LADS on your own risk!

Scanning directory D:\Personal
Files\Downloads\Software\Programming\PHP\Browscap\

     size  ADS in file
----------  ---------------------------------
       88  D:\Personal
Files\Downloads\Software\Programming\PHP\Browscap\php_browscap.ini:♣DocumentSummaryInformation
      204  D:\Personal
Files\Downloads\Software\Programming\PHP\Browscap\php_browscap.ini:♣SummaryInformation
        0  D:\Personal
Files\Downloads\Software\Programming\PHP\Browscap\php_browscap.ini:{4c8cc155-6c1e-11d1-8e41-00c04fb9386d}

      292 bytes in 3 ADS listed


The funny looking symbol can is character #5 which can be entered as
^E. So,  ...

more < php_browscap.ini:^ESummaryInformation > lad.log

The file lad.log now contains the content of the SummaryInformation
alternative data stream.

The format of the content of the streams I don't know, sorry.


-- 
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux