Results 1 to 2 of 2

Thread: Sending a file from server to server

  1. #1
    Join Date
    May 2007
    Location
    England, UK
    Posts
    235
    Thanks
    3
    Thanked 6 Times in 6 Posts

    Default Sending a file from server to server

    Not sure if i'm posting this in the right section,
    but what i'm trying to acheive is:

    I have an online ordering system that produces an xml document once an order has been placed.
    The xml file is stored in a folder on the web server. Each xml file has a unique name.

    Is there anyway (maybe using php) that I can have that file sent to another server once it has been created?

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    The thought that jumps to mind is using PHP's built in FTP functions. php.net has them fairly well documented.

    You could also just send the data as post data to the second server, or use various socket/etc functions, but those can be a bit hard to deal with, and post would require the user be involved.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •