Help, The flow...

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
phpwalker
Forum Commoner
Posts: 81
Joined: Sun Apr 23, 2006 12:18 pm

Help, The flow...

Post by phpwalker »

Hi everyone, is me again, the problem maker. haha

So, basically I've two servers which one allocated at data center, and another one at office.

Office server hosted an application(internal use only) that wanted to pull data from server at data center everyday. Data center hosted am application that can be used by everyone around the world.

My problem is, how do I download the files from another server without saving it manually? What i means is, when people in office click on the accept button on the web page at data center server, the file will be storing into office local server automatically in the background. Let say the file is XML document.

How do I accomplish this? Any idea? Both side using same platform - linux, server side scripting using PHP, database using MySql.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

svn would be nice to implement :wink:
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

I'd probably write a simple bash script that copies something over scp... (and make use of pub/priv keys to do the authentication)

scp user@source:/path/to/file me@destination:/backup/file
phpwalker
Forum Commoner
Posts: 81
Joined: Sun Apr 23, 2006 12:18 pm

Post by phpwalker »

Thanks a lot guys, yours opinion helped me a lot.
Post Reply