note 13757 added to function.ftp-get.php

From: Date: Mon, 02 Jul 2001 03:16:02 +0000
Subject: note 13757 added to function.ftp-get.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-14849@lists.php.net to get a copy of this message
... header("Content-disposition: filename=$file"); header("Content-type: applition/octetstream"); header("Pragma: no-cache"); header("Expires: 0"); $fp = @fopen("$file", "w"); ftp_fget($con,$fp,$fname,FTP_BINARY); @fclose($fp); ... i can't success .. how to download a file from server to client ? $fp = @fopen("$file", "w"); ^^^^^^ this $file is ? when i use $file = "c:/downloads/abc.txt"; abc.txt will save on server side .... teach me ... http://www.php.net/manual/en/function.ftp-get.php

« previous php.notes (#14849) next »