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