will the readfile() function not accept a user/pass combination in an ftp url? like: readfile("ftp://user:[EMAIL PROTECTED]/path/to/file"); I get two errors. The first is a file not found error. The second is a No Such file or directory error. droppoing the user:pass section works just fine. Here's the code: $ftp_server_path = "ftp://$ftpuser:$ftppass@$ftphost/$ftppath/"; $i = $QUERY_STRING; $url = $ftp_server_path.$leech_name[$i]; $filename = explode("/", $leech_name[$i]); // start downloading file Header("Content-Type: application/octet-stream"); Header("Content-Length: ".filesize($url)); Header("Content-Disposition: attachement; filename=$filename[1]"); header("Pragma: no-cache"); header("Expires: 0"); readfile($url); I've also tried going the fopen(), fread() route with the same result. Any ideas what I'm doing wrong? or if it's even possible? Thanks, David Minor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]