Page 1 of 1

Windows fileshare access?

Posted: Thu May 26, 2005 8:46 am
by Roja
Is there a way in php to open a windows fileshare using authentication?

In other words, if I can manually connect/map to \\SERVER\folder , as user DOMAIN\user , with password PASSWORD, is there a way to do the same from php?

I'm almost positive there is, but I dont see how in fopen..

Posted: Thu May 26, 2005 9:10 am
by neophyte
I don't really know myself. But I think if it were a linux machine/share I'd try connecting the machines first with some sort of shell command exec() and then try fopen on the file/directories. But I've never actually done that before. If you figure it out post your solution...

Posted: Thu May 26, 2005 9:20 am
by Roja
neophyte wrote:I don't really know myself. But I think if it were a linux machine/share I'd try connecting the machines first with some sort of shell command exec() and then try fopen on the file/directories. But I've never actually done that before. If you figure it out post your solution...
Nope, its all windows to windows for once. Webserver is IIS, running PHP5, connecting to a windows fileshare.