Jump to content

[SOLVED] Read file from network drive


abdfahim

Recommended Posts

I tried to read from a file. When file location is in local PC (like C:\abd\temp.xls), the code works, but when I tried to read file using same code from a network drive (for example, \\mydomain\folder\file), it fails. I use addslashes function to escape slashes, but it didn't work. Anyone has any idea??

Link to comment
https://forums.phpfreaks.com/topic/107757-solved-read-file-from-network-drive/
Share on other sites

you are quite right, that shared drive is restricted. But i have access to that drive, i mean i can read/write file using windows explorer.isn't it enough? Or, what can i do to access from apache?

 

There is no error shown. It cant open file if i use fopen.

I found the way ... you have to go to services .... then go to apache2 --> Properties --> Log On ... then select "This Account" and give the user name and password same as the windows user name and password of the account which have access to that network drive.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.