In dat geval doel ik op (My)SQL
@RayNbow; dat zal dan allemaal wel LINQ-sepcifiek zijn, de laatste keer dat ik met LINQ heb mogen knutselen was sws in de .Net 3.0 / 3.5 tijd, dus misschien werkt het allemaal wel net anders.
Wat is PHP toch geweldig... NOT...
PHP:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| <pre>
<?php
error_reporting(E_ALL);
ini_set("display_errors", 1);
$filenames = array();
$filenames[] = "\\\\10.0.0.10\\Data\\Video";
$filenames[] = "Z:/Video";
$filenames[] = "Z:\\Video";
foreach($filenames as $filename)
{
$files = scandir($filename);
print_r($files);
}
// Define the parameters for the shell command
$location = "\\\\10.0.0.10\\Data";
$letter = "X:";
$command = sprintf('net use %s "%s" /persistent:no>nul 2>&1', $letter, $location);
// Map the drive
system($command);
// Open the directory
$files = scandir($letter."/Video");
print_r($files);
?>
</pre> |
Array
(
[0] => .
[1] => ..
[2] => High Definition
[3] => Serie
[4] => Standard Definition
)
Warning: scandir(Z:/Video) [function.scandir]: failed to open dir: No such file or directory in C:\wamp\www\fopen\index.php on line 11
Warning: scandir() [function.scandir]: (errno 2): No such file or directory in C:\wamp\www\fopen\index.php on line 11
Warning: scandir(Z:\Video) [function.scandir]: failed to open dir: No such file or directory in C:\wamp\www\fopen\index.php on line 11
Warning: scandir() [function.scandir]: (errno 2): No such file or directory in C:\wamp\www\fopen\index.php on line 11
Array
(
[0] => .
[1] => ..
[2] => High Definition
[3] => Serie
[4] => Standard Definition
)
Wie het weet mag het zeggen

Het is van een Win7 x64 machine met daarop WAMP en PHP 5.3.0 naar een Win 2k8 Server met publieke network-shares.
offtopic:
Dit mag btw zo in het ranzige-programmeer-topic

[
Voor 3% gewijzigd door
Matis op 07-08-2010 12:52
]