Jump to content

php ftp download using header


dubc07

Recommended Posts

FTP is a protocol. It requires an ftp client and a ftp server. The php ftp functions "implement client access to file servers speaking the File Transfer Protocol (FTP)" and therefor require a ftp server at the other end in order to send or retrieve files.

 

I'm not sure if that answers your question as it was fairly vague.

To follow up on the answer provided by PFMaBiSmAd

 

I have a php script that access's the ftp via ftp servername, username and password

The scripts pulls the data by directory using the php function ftp_nlist. This script that

i have is successful at connecting to the ftp server and displaying directory and files listed on the server.

 

However there is no function for grabbing and downloading to a pc via browser header

example: header('Content-Type: application/octet-stream');

 

There are functions for copy and write to local and remotes on the server

but i was just wondering if any of you brilliant developers out there had a means of downloading via headers.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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.