|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-12-20 05:43 UTC] derick@php.net
[2002-12-20 05:51 UTC] tit dot petric at telemach dot net
[2002-12-20 05:54 UTC] derick@php.net
[2002-12-31 05:08 UTC] derick@php.net
[2003-02-25 01:56 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 04:00:01 2025 UTC |
$this->_connection = ftp_connect($host); if (!$this->_connection) { trigger_error('FTP Connection to '.$host.' failed.',E_USER_ERROR); } $this->_login = ftp_login($this->_connection,$user,$pass); if (!$this->_login) { trigger_error('FTP Login to '.$user.'@'.$host.' failed.',E_USER_ERROR); } $this->_passive = ftp_pasv($this->_connection,$passive); $this->_systype = ftp_systype($this->_connection); - this is the code for my connect function inside a ftp class, and it should be valid according to documentation provided, and i really cant complain i have everything routed trough error handlers, but every once in a while i get a scripting error (ughm, i dont know if that is the correct term) which basially halts the script and doesnt go trough error handlers the error message displayed is: "connect: Connection timed out" this could/should be changed to E_WARNING or E_NOTICE from this critical error kinda thing.