Re: Accessing mapped drives on Netware Server
am 12.04.2008 14:14:33 von AnrDaemonGreetings, chetter@gmail.com.
In reply to Your message dated Friday, March 21, 2008, 23:10:04,
>> >> >> > // THIS DOES NOT WORK
>> >> >> > //$dirpath = "I:\\REPORTS\\";
>>
>> >> >> > // THIS DOES WORK
>> >> >> > $dirpath = "\\\\SERVER\\VOLUME\\ORG\\REPORTS\\"; if
>> >> >> > (is_dir($dirpath)) .... returns TRUE and the script continues...
>>
>> >> >> > It has been several years since I had to go through this setup --
>> >> >> > I thought that the only thing I had to do was make sure not to run
>> >> >> > Apache as a Local Service. Â There must be something else I am
>> >> >> > missing. Â I don't remember any PHP changes required to make this
>> >> >> > work -- did I miss something? Â Any insights would be appreciated.
>> >> >> > Sorry if this is just an Apache\Windows issue and I have posted
>> >> >> > this to the wrong group. Â Thanks.
>>
>> >> >> Are you mapping the drives from your profile or from the system
>> >> >> start up (is been so long ago I've forgotten how to do this). It
>> >> >> sounds like PHP is running in a different session from where the
>> >> >> mapping exists.
>>
>> >> >> Is it that much of a bugbear to use the unmapped network path?
>>
>> >> > I have resigned (for now) to go with the UNC paths as cumbersome as
>> >> > they are. Â It is still puzzling that php handles the two cases
>> >> > differently. I still am searching for a significant difference
>> >> > between my old Win2K PC and my new Win XP machine. Â So far, nothing.
>>
>> >> In my opinion you should use the UNC rather than the mapping in the
>> >> first place. The mapping may get changed or not exist for whatever
>> >> reason... the UNC will always be the UNC.
>>
>> > I think you have that reversed. When our server names change, the UNC
>> > changes. The drive letters do not. Kind of the whole idea behind
>> > mapping a drive letter, no? This is of course an infrequent occurrence
>> > but it does happen.
>>
>> Why would a servers name change?
> We buy new servers every few years. New servers get new names. Old
> servers keep old names. Data is moved from old server to new server.
> Mapping makes it invisible to our apps.
Make sure You're running Your script under the same credentials, as Your users
log into server. Looks You're trying to access drive letters under the SYSTEM
account, where they aren't exists or You simply not have access to them.
--
Sincerely Yours, AnrDaemon