Link to home
Start Free TrialLog in
Avatar of mh2
mh2

asked on

Writing a file to disk on another machine on my bsd "network"

Hi,

My client has 2 co-located machines behind a router/whatever at ISP. One server receives email, and parses it with a content-filter wtitten in PHP. The other server will act as a "file server".

I need the PHP script on the email server to be able to save the attachments in the email to a directory on the file server.

I can extract the attachments without a problem, however I looking for whats the best way to write files to the other machine.

The boxes are running FreeBSD 4.9. Both have an internet routable IP [the "file server" also acts as a web server, but this may change in future].

What would you guys recommend as the best way to handle this problem?

Many thanks in advance
Mark
ASKER CERTIFIED SOLUTION
Avatar of dorward
dorward

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hqtrung
hqtrung

I think you can do a ftp function and write your file into a specific directory on that machine which run a ftpd !