开发者

How to save/copy file in php script between two windows servers with authorization?

开发者 https://www.devze.com 2022-12-17 08:49 出处:网络
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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号