note 13757 rejected and deleted from function.ftp-get.php by zak

From: Date: Mon, 02 Jul 2001 03:27:32 +0000
Subject: note 13757 rejected and deleted from function.ftp-get.php by zak
Groups: php.notes 
Request: Send a blank email to php-notes+get-14850@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 ...

« previous php.notes (#14850) next »