Re: Re: Help with scandir()

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

 



I lack experience with windows, but my experience in linux tells me
this *might* be related to the permissions the PHP or webserver has to
access that remote drive?  Ie. like the drives might be mapped just
for your user?

Not sure, but you might want to check this, permissions are common
problems with using scandir...

Simon

On Mon, Apr 27, 2009 at 4:55 AM, Jan G.B. <ro0ot.w00t@xxxxxxxxxxxxxx> wrote:
> 2009/4/26 Nathan Rixham <nrixham@xxxxxxxxx>:
>> 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
>>
>
> That's quite likely.
> Another aproach I thought about when reading your first post was using
> "subst" to remap the share as another virtual drive. But I'm unsure if
> this would change anything. subst comes with windows and you can map
> new drives like that:
> subst g: c:\somewhere\else
> subst h: b:\
>
> Regards
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
When Earth was the only inhabited planet in the Galaxy, it was a
primitive place, militarily speaking.  The only weapon they had ever
invented worth mentioning was a crude and inefficient nuclear-reaction
bomb for which they had not even developed the logical defense. -
Asimov

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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