The connection to the ftp may need to be put into passive mode to
transfer any files, and even the directory listings... try that and see
if the problem is fixed... this is especially true on machines accessing
the internet through NAT (network access translation) network
firewalls/servers

-----Original Message-----
From: Philip Hallstrom [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 18, 2002 4:44 PM
To: Ian Wayne
Cc: [EMAIL PROTECTED]
Subject: [PHP] Re: Problems with ftp_get

I would double check the values of $newName and $oldName and make sure
that you have read permission on the one and write permission on the
other... seems like the error should tell you what file it's having
problems with, but maybe not.

-philip

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? Thanks. Ian.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to