You are here: getting file info using COM « PHP Programming Language « IT news, forums, messages
getting file info using COM

Posted by Mike Wasilewski on 10/01/71 11:45

I am trying to get file information using COM but I do not get all of the
info using the code below.

$shell = new COM("Shell.Application") or die("COM Shell Application
Problem.");
$myfolder= $shell->Namespace(0);
$fileinfo= $myfolder->ParseName("C:\\test.wma");
for ($i=0; $i<33; $i++) {
echo $i.") ".$myfolder->GetDetailsOf("",$i).":
".$myfolder->GetDetailsOf($fileinfo,$i)."<br>";
}

I found this snippet in the newsgroups but it only returns the first 7
fields of info.
I also read that IShellFolder2 has superceded GetDetailsOf but have not
found any references on how to use this in PHP.

I am trying to extract the info for wma files to get data similar to ID_3
tags in mp3 files.

I would appreciate it if someone could make an alternate suggestion on how
to do this or offer some info on how to get it working using COM.

Thanks!

Mike

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация