Jump to content
xisto Community
triggerhappy

Ftp Using Php

Recommended Posts

my program will transfer data from one computer to another computer.I have no idea in using ftp under linux. :) ...


Do you mean, your PHP program will connect to another computer using FTP to transfer files? Or you just want to transfer your files to remote server using a FTP client in Linux?

Because, FTP functions in PHP will work same on all platforms. They are platform independent.
Please explain your problem or clearly, so that we can help.

Share this post


Link to post
Share on other sites

I too am unsure of what exactly you want, is it just that you want to be able to upload and download files with php?If so that is possible.If you just want to use FTP in linux then get a linux FTP client. There are plenty out there

Share this post


Link to post
Share on other sites

Do you mean, your PHP program will connect to another computer using FTP to transfer files? Or you just want to transfer your files to remote server using a FTP client in Linux?
Because, FTP functions in PHP will work same on all platforms. They are platform independent.
Please explain your problem or clearly, so that we can help.



I just need to transfer files to another computer...

Share this post


Link to post
Share on other sites

I just need to transfer files to another computer...

So, you mean...you just want to transfer your files to another computer using FTP client software? If so there are many ftp clients available for Linux. Just google for it and get one, and if you don't know how to transfer files using a FTP client just post your question and we will explain you.

Or, Do you want a PHP program(actually a PHP script) that can connects to FTP to transfer files to another computer?

Actually I still didn't understand what you want.. :) Only thing I understood is you want to transfer your files to another computer...But I didn't understand what is the method you wanted to do so.

Share this post


Link to post
Share on other sites

I agree with xpress, i too am unsure of the method you want to use.If you wish to use PHP to interact with FTP i cant help you there, however you could set up a system where you use a PHP script on a website to upload the file to the internet, and then on the other computer download it from that site.If you want to use FTP you need two things, an ftp SERVER and an ftp CLIENT. You install the server on the remote computer (computer A try googling "mecury FTP server") You then need to install a client program (like filezilla) on the other computer. Computer B. Then you turn both on (or get someone else to turn the other one on) and connect them to the internet. Sitting at computer B you then upload a file to the server on computer A and the file is transferred across the internet to computer A.This however has several problems as you will need to enable port forwarding if behind a router, enable unrestricted access to computer A etc......Cant you just save the file to a disk and send it? or transfer the file over IM etc...?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.