note 118448 added to function.ftp-login
| From: | Anonymous | Date: | Mon, 07 Dec 2015 17:57:10 +0000 |
| Subject: | note 118448 added to function.ftp-login | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-204304@lists.php.net to get a copy of this message | ||
from: http://www.ietf.org/rfc/rfc1635.txt
"What is Anonymous FTP?
"...
"Traditionally, this special anonymous user account accepts any string as a password, although
it is common to use either the password "guest" or one's electronic mail (e-mail)
address. Some archive sites now explicitly ask for the user's e-mail address and will not
allow login with the "guest" password. Providing an e-mail address is a courtesy that
allows archive site operators to get some idea of who is using their services. "
So your code would be:
<?php
ftp_login('ftp.example.com', 'anonymous', 'user@example.com');
?>
If a blank password works, you might have a default password set in your php.ini
----
Server IP: 72.52.91.14
Probable Submitter: 96.11.182.98
----
Manual Page -- http://php.net/manual/en/function.ftp-login.php
Edit -- https://master.php.net/note/edit/118448
Del: integrated -- https://master.php.net/note/delete/118448/integrated
Del: useless -- https://master.php.net/note/delete/118448/useless
Del: bad code -- https://master.php.net/note/delete/118448/bad+code
Del: spam -- https://master.php.net/note/delete/118448/spam
Del: non-english -- https://master.php.net/note/delete/118448/non-english
Del: in docs -- https://master.php.net/note/delete/118448/in+docs
Del: other reasons-- https://master.php.net/note/delete/118448
Reject -- https://master.php.net/note/reject/118448
Search -- https://master.php.net/manage/user-notes.php