note 15221 added to function.ftp-get

From: Date: Sat, 01 Sep 2001 13:35:41 +0000
Subject: note 15221 added to function.ftp-get
Groups: php.notes 
Request: Send a blank email to php-notes+get-17512@lists.php.net to get a copy of this message
I think that what you really want here is: $data = file($tempfile); not $data = readfile($tempfile) as readfile() prints directly to standard out rather than returning an array containing the contents of the file http://www.php.net/manual/en/function.ftp-get.php

« previous php.notes (#17512) next »