svn: /phpdoc/en/trunk/reference/ftp/ examples.xml

From: Date: Sun, 17 Jan 2010 19:56:37 +0000
Subject: svn: /phpdoc/en/trunk/reference/ftp/ examples.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-5881@lists.php.net to get a copy of this message
wiesemann Sun, 17 Jan 2010 19:56:37 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=293657 Log: indentation fix Changed paths: U phpdoc/en/trunk/reference/ftp/examples.xml Modified: phpdoc/en/trunk/reference/ftp/examples.xml =================================================================== --- phpdoc/en/trunk/reference/ftp/examples.xml 2010-01-17 19:55:57 UTC (rev 293656) +++ phpdoc/en/trunk/reference/ftp/examples.xml 2010-01-17 19:56:37 UTC (rev 293657) @@ -18,22 +18,22 @@ // check connection if ((!$conn_id) || (!$login_result)) { - echo "FTP connection has failed!"; - echo "Attempted to connect to $ftp_server for user $ftp_user_name"; - exit; - } else { - echo "Connected to $ftp_server, for user $ftp_user_name"; - } + echo "FTP connection has failed!"; + echo "Attempted to connect to $ftp_server for user $ftp_user_name"; + exit; +} else { + echo "Connected to $ftp_server, for user $ftp_user_name"; +} // upload the file $upload = ftp_put($conn_id, $destination_file, $source_file, FTP_BINARY); // check upload status if (!$upload) { - echo "FTP upload has failed!"; - } else { - echo "Uploaded $source_file to $ftp_server as $destination_file"; - } + echo "FTP upload has failed!"; +} else { + echo "Uploaded $source_file to $ftp_server as $destination_file"; +} // close the FTP stream ftp_close($conn_id);

« previous php.doc.cvs (#5881) next »