Windows fileshare access?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Windows fileshare access?

Post 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..
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post 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...
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post 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.
Post Reply