note 14385 added to function.header.php
| From: | jurrie at startsmart dot nl | Date: | Sat, 28 Jul 2001 22:09:07 +0000 |
| Subject: | note 14385 added to function.header.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16000@lists.php.net to get a copy of this message | ||
I don't know if this is a dumb question but is it possible to let a header() redirect to an FTP
address?
I'm hosting my files on an FTP and I'm letting ppl download using a FORM. I'm using
the following code:
header("Content-Type: application/download\n");
header("Content-Disposition: attachment; filename=\"$file\"");
header("Location: ftp://127.0.0.1/$section/$file");
But the only browser correctly redirecting the files is Opera (5.12). Both Mozilla (0.9.2) and IE
(5.0) give an error...I don't know if headers are really meant to redirect to an FTP.
http://www.php.net/manual/en/function.header.php