php read contents of file on shared directory -


i have laptop running server , want read text file mounted on raspberry pi. have shared pi directory on windows network , can access folder ok. have got php script can open file on localhost drive , display contents, cannot read shared pi folders.

the following simple php script suppose read file , display contents.

<?php  $data = file_get_contents('file:///y:/test1.txt');  echo ($data);  ?> 

i can access folder through windows explorer has been shared correct. can see contents of file if put following in google explorer

 file:///y:/test1.txt 

is there way or need think of different approach. see others have tried cannot see how have got work

i have read having change reg file in windows machine. hkey_local_machine\system\currentcontrolset\services\lanmanserver\parameters
restrictnullsessaccess key 0 have done still not work


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -