HI,
I have two webserver and two domain and I want to share information between them.What I want to do is this to share the database between two webserver so ,if I add new information through domain 'A' that information can can be catch from domain "B" and I have that information in domain 'B'.Also the files in one server should be share between two webserver so If I add a new file or make a change in it in domain 'A' it can be retrieve from domain 'B' an I can use it in there.

I apologize if it's not so clear .My English is not good.

Thanks

I do this a lot as my website is scattered between two web servers and the easiest way is with curl and file_get_contents(). You can retrieve contents from a database using file_get_contents('http://example.com/sql.php?key=asldfkjasldkfj&column=23') . Then it will return the contents of that mysql request and you can use the url parameters as part of the WHERE clause. On the other hand there is curl with allows you to do $_POST requests. This way you can send larger amounts of data and will be harder for people to tap into the database.

what you can use for this is cURL, this gives you the possibility to open a stream to an other server and write/read there.

HI,
I have two webserver and two domain and I want to share information between them.What I want to do is this to share the database between two webserver so ,if I add new information through domain 'A' that information can can be catch from domain "B" and I have that information in domain 'B'.Also the files in one server should be share between two webserver so If I add a new file or make a change in it in domain 'A' it can be retrieve from domain 'B' an I can use it in there.

I apologize if it's not so clear .My English is not good.

Thanks