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.

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.