Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6036919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:59:45+00:00 2026-05-23T05:59:45+00:00

Is it possible to transfer a file from local machine to a remote server

  • 0

Is it possible to transfer a file from local machine to a remote server if the php script (say using ftp functions ) resides on a remote server?. I heard it might take to set up the local machine as a FTP server and the local machine should have a static IP address.

I am looking for directions as to how to set up the local machine to be a ftp server?., or is there any other way with php other than the form file upload($_FILES) thing ?.

Would appreciate any help. Thanks!.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T05:59:46+00:00Added an answer on May 23, 2026 at 5:59 am

    FTP will work, but:

    • If the server and the client are on the same network, you can use a network share. Going this route, you can use the normal filesystem functions available in PHP (docs). Just use the network name and share path, flip the slashes to forward: “//servername/path/to/share” Here is a tutorial on setting up a network share, assuming Windows is the client OS.

    • If network share is out of the question, you can set up a local FTP server. Here is a Lifehacker article on how to set this up, assuming you have a Windows OS. There are similar tutorials for Mac and *nix, there are so many you’d have to try NOT to find them on Google. 🙂 There are many other routes to set up the FTP server, it isn’t that important which server you use, just make sure you aren’t leaving yourself wide open to the internet. After you set up the local FTP server, use PHP’s FTP functions to connect from the server to your local machine.

    It really is a better route to use the network share if you can, but of course that isn’t an option if the server is not in your local network.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My code copies files from ftp (using text transfer mode) to local disk and
Possible Duplicate: How do you send email from a Java app using Gmail? How
I was wondering today if it was possible to transfer data from one database
What are possible options to transfer a lot of data from one computer to
Possible Duplicate: Python urllib2 Progress Hook I have a script which uploads a file
Is it possible to achieve better data transfer rate with multiple parallel TCP connections
Possible Duplicate: Singleton: How should it be used Following on from Ewan Makepeace 's
Currently I have an application that receives an uploaded file from my web application.
I need to have as part of a desktop application a file server which
I've been asked to populate a flash file with some data from a database.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.