Help with scandir() -- Problem Solved

From: Date: Wed, 29 Apr 2009 01:05:51 +0000
Subject: Help with scandir() -- Problem Solved
Groups: php.general 
Request: Send a blank email to php-general+get-292067@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 > For the windows shared folder: just including the server name in the URL works as sugested by Nathan Rixham<nrixham@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<turner25@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

« previous php.general (#292067) next »