Re: how to access file stats on network dirves..

From: Date: Sat, 23 Nov 2002 00:04:26 +0000
Subject: Re: how to access file stats on network dirves..
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-17085@lists.php.net to get a copy of this message
thanxs for your response.. i worked around it the following way: in my php script i envoke the ntvdm via cmd.exe through teh command net use drive_letter: \\servername\path /user:username pass in the next step i walk through the filesystem using opendir. en then check wether the returned value is a file or a dir. this then goes in to my database for further processing. it works great! "Brian 'Bex' Huff" <bex@stellent.com> schreef in bericht news:3DDBDF3A.6090704@stellent.com... > > Two things you might want to try... > > 1) you are doubtless running IIS or Apache as a service. Make sure that > you are running it as a user who has access rights to the network drive. > For example, you may need to run it as a domain user, and supply a > password. Check the "Services" control panel for more info. > > 2) You may want to map your network drive as a local drive > > And fyi, its always easier to diagnose your problem if you supply us > with the exact error messages you are getting... > > -- > > Brian 'Bex' Huff > bex@stellent.com > Phone: 952-903-2023 > Fax: 952-829-5424 > > > I'm working on a file sharing solution in php. > > i got a network share that contains these files. > > the idea is to read the file data en parse descriptions thru php to the > > client in html. > > > > only problem is that opendir works fine on the local drives, but reports > > only errors when used on network drives.. > > > > what's the way to go around this one? > > > > > >

« previous php.windows (#17085) next »