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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

php get file from another server

  • 28-09-2006 11:16pm
    #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, Registered Users 2 Posts: 6,571 ✭✭✭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