From f0b6926e11613aec5304a0ef140399b5ccd099a6 Mon Sep 17 00:00:00 2001 From: Curt Zirzow Date: Sat, 19 Jun 2004 15:42:56 +0000 Subject: [PATCH] Fixed example git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@161721 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/ftp/functions/ftp-exec.xml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/reference/ftp/functions/ftp-exec.xml b/reference/ftp/functions/ftp-exec.xml index ba9353cc32..ff41c47dd2 100644 --- a/reference/ftp/functions/ftp-exec.xml +++ b/reference/ftp/functions/ftp-exec.xml @@ -1,5 +1,5 @@ - + @@ -31,9 +31,8 @@ $conn_id = ftp_connect($ftp_server); $login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); -if ($res = ftp_exec($conn_id, $command)) { +if (ftp_exec($conn_id, $command)) { echo "$command executed successfully
\n"; - echo nl2br($res); } else { echo 'could not execute ' . $command; }