The thing I'm having a problem with is actually finding the files.
Now I tried this code for my server.
Code: Select all
<?php
$Array = glob('\\\\myserver\\Shared\\*', GLOB_ONLYDIR);
while(list ($key,$value) = each($Array))
{
echo $key . ' : ' . $value . '<br />';
}
?>Code: Select all
<?php
$Array = glob('\\\\servername\\Shared\\*', GLOB_ONLYDIR);
while(list ($key,$value) = each($Array))
{
echo $key . ' : ' . $value . '<br />';
}
?>The first code returns
Code: Select all
0 : \\myserver\Shared\Comedy
1 : \\myserver\Shared\Emulation
2 : \\myserver\Shared\Movies
3 : \\myserver\Shared\New Releases
4 : \\myserver\Shared\OST
5 : \\myserver\Shared\Programs
6 : \\myserver\Shared\TV ShowsYes, I've searched through the forums but never got an answer that would work. Thanks alot.
Not to mention, but this only searches the folder I specifiy next to the servername... what I'm actually looking for is a script that can grab all of the shared folders by using just the \\\\servername\* command.