views:

318

answers:

2

Hello

I want to copy/save file in php script from one Windows Server (source) to second Windows Server (dist). I cant use anonymous "Guest" account, I need to authorize on dist server by user and pass.

Have you any idea how to do this?

I tried to to this with UNC paths like this: "\path\to\dist\file.txt" but I cant force user authorization and cant change default Guest user.

+1  A: 

You could use the exec function in php to copy the filese over the Windows Commandline.

Try with: link text

@nusbit: sorry, but allowing PHP to execute command like "exec, system, passthrue" is not save for web applications.
Adiasz
A: 

problem solved by custom *.bat file which mount appriopriate drive and directory

Adiasz