Re: ftp_login problem

From: Date: Tue, 20 Feb 2001 08:53:18 +0000
Subject: Re: ftp_login problem
Groups: php.general 
Request: Send a blank email to php-general+get-40705@lists.php.net to get a copy of this message
Addressed to: Bill.Hoffman@walgreens.com php-general@lists.php.net ** Reply to note from Bill.Hoffman@walgreens.com Mon, 19 Feb 2001 15:22:49 -0600 > > I wanted to check with all of you before I report a bug. > > Here is the problem: > I am attempting to access a OS2 server via ftp. When I login on the > command line as anonymous to this server it does not require a password. > When I try to login via PHP (ftp_login) it requires that I use a password.. > When I try to just put in just any password ftp_login comes back with a > login failed message. > > here is the error: > Warning: ftp_login: User anonymous logged in. in /home/httpd/html/php/ftpget.php on line 15 > > You can see the message that the server is returning is saying that my login was ok but > ftp_login does not return success. > > > If anyone has insight into this please let me know, I suggest you put a password on that box, before someone else finds it! Besides being more secure, it will allow you to use PHP's ftp as it is usually used. Also, since we are talking anonymous login to ftp, you might try using an email address for a password. That seems to be a common convention. You are MUCH better off password protecting the OS/2 box: Double click on: TCP/IP Internet (LAN) - you may have to look for it in OS/2 System. In that folder, double click on TCP/IP Configuration (LAN). I know these say LAN, but things like FTP passwords will affect dial up networking too. Click on the Security Tab. Click on the Add button. Fill out the form with an explicit username/password combination, and optionally a specific drive and directory you wish to serve via ftp. The directory you specify here will be the 'home' directory for the specified user, and the only area your machine will serve files from. If you have more than one user who wants access, you can create as many authorized users as you wish by repeating the instructions starting at the Add button. P.S. It is nice to see I am not the only OS/2 user left... :) Rick Widmer Internet Marketing Specialists http://www.developersdesk.com

« previous php.general (#40705) next »