Cannot open file on NAS drive from Windows 7

Locked
ACovington
User
Posts: 2
Joined: Thu Nov 09, 2017 2:27 am
Are you a spambot?: no

Cannot open file on NAS drive from Windows 7

Post by ACovington » Thu Nov 09, 2017 3:06 am

PHP: 7.1.6-Win32-VC14-x64
getid3: 1.9.15-201709291043
Apache: 2.4.23
Windows: OS Name Microsoft Windows 7 Professional Version 6.1.7601 Service Pack 1 Build 7601
Using demo.browse.php

The NAS drive is available via a UNC name and via a drive letter.

Using the drive letter to reference the NAS doesn't work in PHP, see attached PHP test file and output.

Using the UNC name does work from the PHP test file. Demo.browse.php does access directories using UNC. It lists subdirectories, but lists an error for each file. It doesn't access files correctly. The error is
Could not open "\SHARED\VOLUME_1\MusicEac\Blues\Big Miller and The Blues Machine - Big Miller and The Blues Machine\01 Don't Turn Me Around.flac" (!is_readable; !is_file; !file_exists)
If I comment out line 287 in getid3.php (development version just downloaded), then files are accessed correctly when looking at tags. The directory listing still reports an error for files.
Attachments
PHP Play Page.pdf
Output from test.php
(75.4 KiB) Downloaded 31 times
test.php
(851 Bytes) Downloaded 94 times

James Heinrich
getID3() v1 developer
Posts: 1451
Joined: Fri May 04, 2001 4:00 pm
Are you a spambot?: no
Location: Northern Ontario, Canada
Contact:

Re: Cannot open file on NAS drive from Windows 7

Post by James Heinrich » Thu Nov 09, 2017 5:39 am

I have made some changes that might fix your problem:
https://github.com/JamesHeinrich/getID3 ... e6f5d2bef2

Please try it out and let me know if you still have problems.

ACovington
User
Posts: 2
Joined: Thu Nov 09, 2017 2:27 am
Are you a spambot?: no

Re: Cannot open file on NAS drive from Windows 7

Post by ACovington » Fri Nov 10, 2017 8:58 pm

That fixed all the problems.

Thanks. That was very quick.

Locked