Re: ftp_get

From: Date: Mon, 27 Aug 2001 09:39:01 +0000
Subject: Re: ftp_get
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-64604@lists.php.net to get a copy of this message
oh yeah, that's true. Ok, i made a dir 'testdir' with permissions 777. Still i it gives the same error. Warning: error opening /web/testdir/test.html in ................ -Maarten ----- Original Message ----- From: "Chris Lambert" <chris@php.net> To: "MBK" <mbk@tmteam.nl> Cc: <php-general@lists.php.net> Sent: Monday, August 27, 2001 2:54 AM Subject: Re: [PHP] ftp_get > No, the permission problem would be local (hence the error referencing the > destination file). It has nothing to do with FTP permissions, but the web > server's permission to write the file to /web/. > > /* 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 8:23 PM > Subject: Re: [PHP] ftp_get > > > | 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 > | > > | > > | > | > | > | -- > | PHP General Mailing List (http://www.php.net/) > | To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > | For additional commands, e-mail: php-general-help@lists.php.net > | To contact the list administrators, e-mail: php-list-admin@lists.php.net > | > | > | > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#64604) next »