Help with scandir() -- Problem Solved

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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<nrixham@xxxxxxxxx>


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<turner25@xxxxxxxxx>

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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux