Access to network shares

From: Date: Wed, 06 Feb 2002 20:47:53 +0000
Subject: Access to network shares
Groups: php.windows 
Request: Send a blank email to php-windows+get-11881@lists.php.net to get a copy of this message
It seems impossible for me to use file system and directory functions that attempt to access network drives on another server. For example, take the dir() example from the manual: <?php function getDirList($dirName) { $d = dir($dirName); while($entry = $d->read()) { if ($entry != "." && $entry != "..") { if (is_dir($dirName."/".$entry)) { getDirList($dirName."/".$entry); } else print("$entry<br>\n"); } } } getDirList("//server/share/dir"); getDirList("S:\\dir"); ?> If S: is mapped to \\server\share then the above will fail with: Warning OpenDir: Invalid argument (errno 22) in .... I've tried using '/', '\' (properly escaped) and UNC names. I've given full control permissions both via the filesystem and the share to the user. I'm sure I'm missing something. -- Mike Fallavollita mikef@microtech.com

« previous php.windows (#11881) next »