|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-08-13 19:56 UTC] zxc at zmail dot ru
[2005-08-13 20:19 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 12:00:01 2025 UTC |
Description: ------------ I try to connect to remote FTP SERVER. Remote FTP server has "anonymous account" = login must by "anonymous" and any password, but after "ftp_login()" I have: Warning: ftp_login(): Syntax error: Invalid number of parameters. in d:\vhosts\webftpmonitor.scornet.lan\test.php on line 3 bool(false) But if I use this code works fine (deffirent password, but not NULL or not empty string -> ""): <? $ftp=ftp_connect("remoteftpserver.domain"); var_dump(ftp_login($ftp,"anonymous","tralala")); ?> Oh yea... remote FTP SERVER is "FTP Server by Pablo Software Solutions Version, latest version of lite and pro version" (http://www.pablosoftwaresolutions.com/) Reproduce code: --------------- <? $ftp=ftp_connect("remoteftpserver.domain"); var_dump(ftp_login($ftp,"anonymous",NULL)); ?> Expected result: ---------------- bool(true) Actual result: -------------- bool(false)