note 98385 deleted from function.ftp-connect by danbrown

From: Date: Fri, 11 Jun 2010 18:43:44 +0000
Subject: note 98385 deleted from function.ftp-connect by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-170072@lists.php.net to get a copy of this message
Note Submitter: Ferry ---- I had some problems whit this function. When I do this: <?PHP if(!($ftp = @ftp_connect('111.111.111.1',21,30))) { die("No connection."); } ?> I get one error from ftp_connect() that 111.111.111.1 not existed, but the @ subres normal all the errors, so my solusion was to do this: <?PHP ob_start(); if(!($ftp = ftp_connect('111.111.111.1',21,30))) { ob_end_clean(); die("No connection."); } ob_end_clean(); ?> Now comes only your error.

« previous php.notes (#170072) next »