views:

589

answers:

2

I am having the following difficulties: Three servers A,B,C : A,B in the same network domain; C in another. PHP scripts executing on server A write to a shared folder on server B. The same scripts executing on server C fail to write to server B.

PHP looks something like this:

oject->Output('\\\\serverB\\sharedfolder\\file.dummy');

Is there any way I can make this script work elegantly on server C?

When I remote-desktop to server C and want to see the contents of \\serverB\sharedfolder, a login prompt pops up and asks for a user name and password. This I can provide and subsequently access the shared folder on server B. But how could I do this from a PHP script? Is it possible?

A: 
vartec
A: 

I think the easiest option with security in mind would be to write the content from server C in to a socket where server A,B reside and have an additional script which will save the content written from the socket to your shared folder.....

http://www.php.net/manual/en/function.fsockopen.php

Ronald Conco
our IT team has rearranged the servers so that it automagically started to work, but I like the proposed solution. This seems like an elegant and secure solution.
Peter Perháč
I am glad you have found a working solution.....good luck man....
Ronald Conco