If using Windows 7, all files can be read. And if Apache starts from XAMPP Control Panel (not from service), files can be read.
Is this XAMPP/Apache Bugs ?
*** My Environment ***
Windows 10 Pro, ver. 1607, OS build 14393.51
Apache 2.4.17
PHP 5.6.23
Target Shared Device: QNAP NAS, TS231
***
- Code: Select all
<?php
$file_path = "\\\\TS231-1\\fs_data\\data.xml";
var_dump(file_get_contents($file_path));
?>
*** Error Message ***
Warning: file_get_contents(\TS231-1\fs_data\data.xml): failed to open stream: Invalid argument in C:\xampp\htdocs\index.php on line 16
bool(false)
***
*** WireShark ***
***