Deivys Delgado Hernandez wrote:
> Hi,
> I'm having problems when i try to use the function scandir()  in a Novell 
> Netware Volumen or a Windows Shared Folder
> they both are mapped as a windows network drive, so i suppose i could access 
> them as local drive, but i can't. instead i receive this message:
> 
> Warning: scandir(R:\) [function.scandir]: failed to open dir: Invalid 
> argument in C:\WebServ\wwwroot\htdocs\index.php on line 3
> Warning: scandir() [function.scandir]: (errno 22): Invalid argument in 
> C:\WebServ\wwwroot\htdocs\index.php on line 3
> 


For the windows shared folder:
 just including the server name in the URL works
as sugested  by 
Nathan Rixham<nrix...@gmail.com>


For Novell: 
the windows account under appache server is running
 Most exist in the Novell Server and most have the correct permissions to the 
Volumen
as sugested by 
Simon<turne...@gmail.com>

this is the Final Script (simplified of course)



 <?php

  $dir1 = "\\\Windows_Server\\Install";                                   //For 
the Windows Shared Folder
  $dir2 = "\\\Novell_Server\\sys\\public";                                //For 
the Novell NetWare Server

  $files1 = scandir($dir1);
  $files2 = scandir($dir2);

  print_r($files1);
  print_r($files2);
 ?>


I'm very proud to belong this community. 
Thank you very much.

Saludos,
Dedel.


---------------------------------------
    Red Telematica de Salud - Cuba
          CNICM - Infomed

Reply via email to