|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-03-03 12:29 UTC] cmb@php.net
-Package: Feature/Change Request
+Package: FTP related
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 21:00:01 2025 UTC |
Description: ------------ Currnetly ftp_connect takes three parameters host, port and timeout and returns either a valid connection or false. It would be nice if it had a fourth parameter for connection error numbers so that we could take the appropriate action or at least tell the user what's wrong. for example: if(!$conn_id = ftp($host, $port, $timeout, $error)) { if ($error == 123) { echo "appropriate error message"; } }