PHP Questions Home | Register | Login
Categories
Arrays
Files
Forms
Creating PDFs
PHP Errors
Functions
Images
MySQL
Numbers
Others
Strings
Website
Unanswered

PHP Forums
Forums Index
MySQL Forum
PHP Forum
Flash/Actionscript
Javascript
Web design

More PHP
PHP Functions
Top Questions
Ask a Question
PHP Interview Questions
PHP Jobs
Ecommerce
IT Questions
Business Websites

Sponsors

sponsor ad
My Salary
PHP Developer Salary
Advertise Here

PHP Questions Forums : PHP Questions and Answers

Jump to Last Post

How to download file from protected FTP server

By: Amgadm [3-September-10 10:03AM]
1 posts
picture

Hello
How to download file from protected FTP server
i tried the following code

$ftp_server = "11.22.33.44";
$conn = ftp_connect($ftp_server,21,15) or die("

Couldn't Connect to Server

");
ftp_login($conn,"user","123");
ftp_pasv($conn,TRUE);
ftp_get($conn,$mname,"/$cat/$mname",FTP_ASCII);
ftp_close($conn);

but the problem that the file is being downloaded in the server itself that contains the download page & not downloaded to the client pc

Thanks a lot
Previous: How Do I Make A Three-dimensional Array?
Next: What Is PHP Caching



Custom Search