Ive got a website where i want to open a file from another server. this server is connected using a network drive.
The file uses Windows authentication. Because of this, using
echo file_get_contents('\\\**.**.local/data/user/*/*.xlsx');
results in
file_get_contents(\\*.*.local/data/user/*/*.xlsx) [function.file-get-contents]: failed to open stream: Permission denied
I found a similar problem here: How to use file_get_contents() to retrieve a file behind Windows NT Auth
But I cant get it to work. Using this:
getUrl('\\\*.*.local/data/user/*/*.xlsx','username','password');
Always results in :
Could not resolve host: \\*.*.local
Using
getUrl('file://*.*.local/data/user/*/*.xlsx','username','password');
gives me
Couldn't open file /data/user//.xlsx
What am I doing wrong?