Re: Problems with ftp_get

From: Date: Tue, 19 Mar 2002 00:45:04 +0000
Subject: Re: Problems with ftp_get
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-89061@lists.php.net to get a copy of this message
On Mon, 18 Mar 2002, Ian Wayne wrote: > I'm getting an unhelpful error message from my ftp script. It says "Warning, > error opening file..." The code in question runs like this. > > $conn = ftp_connect("ftp.mysite.com"); > ftp_login($conn,"user","pass"); > ftp_get($conn, $newName, $oldName , FTP_BINARY); > > I can't see what's causing the error. Any help greatly appreciated as my > forehead is getting sore from all the banging it's doing on my desktop (the > literal one). > > Also, what I want to do is allow users to download a large movie (70-90MB) > rather than be forced to watch it in the browser window. I figured that > making an ftp link would be the best way to do this, but are there other > ways? What you're doing above is transferring the file from the remote server to your web server, not to the end user. Is that really what you want to do? miguel

« previous php.general (#89061) next »