Re: ftp_get
| From: | MBK | Date: | Mon, 27 Aug 2001 00:23:22 +0000 |
| Subject: | Re: ftp_get | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-64564@lists.php.net to get a copy of this message | ||
The user i use to login has full permissions
When i login with an ordinary ftp client using that user, then i can do
anything.
I think when there is a permission problem the error would say that.
----- Original Message -----
From: "Chris Lambert" <chris@php.net>
To: "MBK" <mbk@tmteam.nl>
Cc: <php-general@lists.php.net>
Sent: Sunday, August 26, 2001 11:50 PM
Subject: Re: [PHP] ftp_get
> It looks like you might not have permissions set for the web server to
> create files in /web/...
>
> If you know the names of the files which will be transferred ahead of
time,
> you can manually create them from FTP or your shell, then chmod them to
777.
> Otherwise you might be better off creating a folder (/web/ftp/) and
chmoding
> the folder itself to 777.
>
> /* Chris Lambert, CTO - chris@whitecrown.net
> WhiteCrown Networks - More Than White Hats
> Web Application Security - www.whitecrown.net
> */
>
> ----- Original Message -----
> From: MBK <mbk@tmteam.nl>
> To: <php-general@lists.php.net>
> Sent: Sunday, August 26, 2001 2:51 PM
> Subject: [PHP] ftp_get
>
>
> How exactly does ftp_get work?
>
> I tried it several times, but it always said something like
> Warning: error opening /web/destinationfile.html in .scriptlocation.. on
> line 38
>
> line 38 has: ftp_get($conn_id, $destfile, $remotefile, FTP_BINARY);
>
> Can someone please help me with this.
>
> -Maarten
>
>