tags:

views:

13

answers:

0

I have a php script which lists workgroups/domains, computers in workgroups/domains and shares on computers. The apache is running under specific credentials (so not Local System), so it has access on LAN. Listing subfolders of the shares is working partially: only with latin characters. For example if I have a computer named ABC and a share test I can list its subfolders with

$obj = new COM('Scripting.FileSystemObject',null,CP_UTF8);
$dir = $obj->getFolder("\\\\ABC\\test");
foreach ($dir as $d)
{
...
}

But it is not working with non-latin computer names like:

\\頡ア頷\test

Does anyone have an idea how to resolve this problem?