Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

php get file from another server

Options
  • 29-09-2006 12:16am
    #1
    Closed Accounts Posts: 19,080 ✭✭✭✭


    Is there a get function or something in php to copy from one server to another?

    Ta


Comments

  • Registered Users Posts: 6,508 ✭✭✭daymobrew


    You'll have to elaborate on what exactly you are trying to do.
    Where will the PHP script be run? On the source or destination server?
    Will you have NFS access to either end? (e.g. copy /net/src_svr/file /localdir).

    fopen and copy wil probably be of interest, along with the other filesystem functions.


  • Closed Accounts Posts: 22,479 ✭✭✭✭philologos


    you can use PHP's FTP function if you really need to get the file from one server to another


  • Closed Accounts Posts: 1,200 ✭✭✭louie


    Have a look into the curl() function available for php

    http://ie2.php.net/curl


  • Closed Accounts Posts: 19,080 ✭✭✭✭Random


    Basically, at the moment I can upload from my hard drive. I want to be able to "upload" from a remote url. It could be any image on the web, just saves me saving it to my desktop and then uploading it to the webpage.

    Cheers


  • Closed Accounts Posts: 19,080 ✭✭✭✭Random


    louie wrote:
    Have a look into the curl() function available for php

    http://ie2.php.net/curl
    I'll take a look at this later too.


  • Advertisement
Advertisement