Re: Help with scandir()

From: Date: Sun, 26 Apr 2009 15:29:42 +0000
Subject: Re: Help with scandir()
References: 1  Groups: php.general php.general 
Request: Send a blank email to php-general+get-291994@lists.php.net to get a copy of this message
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
try using the network path instead :) you have to do this for samba drives on windows too. $dir = '//machine.local/share/path'; regards, nathan ps: many people just don't answer if they do not know

« previous php.general (#291994) next »