move uploaded file to a different server

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default move uploaded file to a different server

    is it possible to use move_uploaded_file to send the uploaded file to
    another server?



    Robert Ngo Guest

  2. Similar Questions and Discussions

    1. HowTo Send Uploaded File with INPUT Type file to Sql Server Image Data Type
      I have the following problem: I have the following form client side: <FORM.......> <FORM action="./WZUpload.asp" method="Post"...
    2. HowTo Send Uploaded File with INPUT Type file to Sql Server Image Data Type ?
      I have the following problem: I have the following form client side: <FORM.......> <FORM action="./WZUpload.asp" method="Post"...
    3. note 33822 deleted from function.move-uploaded-file by alindeman
      Note Submitter: eye_of_a_raven ---- this might come in handy: $where_to_move = $_SERVER."/somedir";
    4. note 33683 added to function.move-uploaded-file
      i get the following error: Warning: move_uploaded_file(picture.bmp) : failed to create stream: Permission denied in...
    5. note 33564 deleted from function.move-uploaded-file by sp
      Note Submitter: fuckyou@bigfool.cu ---- Fuck you man!! What you thing about? I hate you!! Thats fuck man!!
  3. #2

    Default Re: move uploaded file to a different server

    Robert Ngo wrote:
    > is it possible to use move_uploaded_file to send the uploaded file to
    > another server?
    try to send received file with your script to another script in the final
    server..
    or maybe you can use ftp functions..

    --
    [url]www.iuz-lab.info[/url]
    iuz Guest

  4. #3

    Default Re: move uploaded file to a different server

    the problem is that the form that upload the file will usually have other
    data. if i put the upload script in the destination server how about the
    other form data.

    "iuz" <user@host.network> wrote in message
    news:nXoad.19045$b5.935918@news3.tin.it...
    > Robert Ngo wrote:
    >
    > > is it possible to use move_uploaded_file to send the uploaded file to
    > > another server?
    >
    > try to send received file with your script to another script in the final
    > server..
    > or maybe you can use ftp functions..
    >
    > --
    > [url]www.iuz-lab.info[/url]

    Robert Ngo Guest

  5. #4

    Default Re: move uploaded file to a different server

    Robert Ngo wrote:
    > the problem is that the form that upload the file will usually have other
    > data. if i put the upload script in the destination server how about the
    > other form data.
    >
    > "iuz" <user@host.network> wrote in message
    > news:nXoad.19045$b5.935918@news3.tin.it...
    >> Robert Ngo wrote:
    >>
    >> > is it possible to use move_uploaded_file to send the uploaded file to
    >> > another server?
    >>
    >> try to send received file with your script to another script in the final
    >> server..
    >> or maybe you can use ftp functions..
    >>
    >> --
    >> [url]www.iuz-lab.info[/url]
    you have 2 script..
    initial server..
    retrieve file
    retrieve infos
    register infos wherever you want to
    (send by post OR ftp to) the file to the final server

    final server..
    retrieve file
    store the file

    --
    [url]www.iuz-lab.info[/url]
    iuz Guest

  6. #5

    Default Re: move uploaded file to a different server

    if the final server does not have php and apache will send by post work?

    "iuz" <user@host.network> wrote in message
    news:5Juad.20320$b5.1000576@news3.tin.it...
    > Robert Ngo wrote:
    >
    > > the problem is that the form that upload the file will usually have
    other
    > > data. if i put the upload script in the destination server how about the
    > > other form data.
    > >
    > > "iuz" <user@host.network> wrote in message
    > > news:nXoad.19045$b5.935918@news3.tin.it...
    > >> Robert Ngo wrote:
    > >>
    > >> > is it possible to use move_uploaded_file to send the uploaded file
    to
    > >> > another server?
    > >>
    > >> try to send received file with your script to another script in the
    final
    > >> server..
    > >> or maybe you can use ftp functions..
    > >>
    > >> --
    > >> [url]www.iuz-lab.info[/url]
    >
    > you have 2 script..
    > initial server..
    > retrieve file
    > retrieve infos
    > register infos wherever you want to
    > (send by post OR ftp to) the file to the final server
    >
    > final server..
    > retrieve file
    > store the file
    >
    > --
    > [url]www.iuz-lab.info[/url]

    Robert Ngo Guest

  7. #6

    Default Re: move uploaded file to a different server

    Robert Ngo wrote:
    > if the final server does not have php and apache will send by post work?
    >
    [..]

    no it won't work..
    in this case you have to store the received file in the initial server and
    with ftp function upload it to the final..

    --
    [url]www.iuz-lab.info[/url]
    iuz Guest

  8. #7

    Default Re: move uploaded file to a different server

    ftp will work but my boss does not like the idea of setting the username and
    password of the ftp account in the php script.

    "iuz" <user@host.network> wrote in message
    news:O9Tad.25892$b5.1307348@news3.tin.it...
    > Robert Ngo wrote:
    >
    > > if the final server does not have php and apache will send by post work?
    > >
    > [..]
    >
    > no it won't work..
    > in this case you have to store the received file in the initial server and
    > with ftp function upload it to the final..
    >
    > --
    > [url]www.iuz-lab.info[/url]

    Robert Ngo Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139