How to save/copy file in php script between two windows servers with authorization?
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开发者_JS百科 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.
You could use the exec function in php to copy the filese over the Windows Commandline.
Try with: link text
problem solved by custom *.bat file which mount appriopriate drive and directory
精彩评论