Uploading a file to a Server

Discussion in 'Programming' started by incdeveloper, Apr 4, 2007.

  1. #1
    Is there any way i can upload a file to my server that is hosted in other server? what i need is a script where you can add the address of lets say a video and the script upload that file to the server using a form.

    thanks in advanced
     
    incdeveloper, Apr 4, 2007 IP
  2. ewriter

    ewriter Banned

    Messages:
    590
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I am not getting your problem clearly. Do you want to upload file to another server using php form at your server?
     
    ewriter, Apr 4, 2007 IP
  3. incdeveloper

    incdeveloper Well-Known Member

    Messages:
    269
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    110
    #3
    I need my server to download a file from other servers by giving it the path using a contact type form.
     
    incdeveloper, Apr 4, 2007 IP
  4. frankcow

    frankcow Well-Known Member

    Messages:
    4,859
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    180
    #4
    what server side technology do you have? (PHP, ASP, etc)
     
    frankcow, Apr 4, 2007 IP
  5. incdeveloper

    incdeveloper Well-Known Member

    Messages:
    269
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    110
    #5
    sorry... jeje its php
     
    incdeveloper, Apr 4, 2007 IP
  6. serjio28

    serjio28 Peon

    Messages:
    37
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Does you server support PHP? If so it is a very easy thing...
    
    <?
    $url="http://www.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.21-rc5/2.6.21-rc5-mm4/2.6.21-rc5-mm4.bz2";
    system('wget '.escapeshellcmd($url));
    ?>
    
    Code (markup):
     
    serjio28, Apr 5, 2007 IP
  7. frankcow

    frankcow Well-Known Member

    Messages:
    4,859
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    180
    #7
    How strange. I put that code into wordpress to create a 'how-to', and I get the following error when trying to post it:
     
    frankcow, Apr 9, 2007 IP