Fixed example

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@161721 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Curt Zirzow 2004-06-19 15:42:56 +00:00
parent 8602477ddb
commit f0b6926e11

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.9 $ -->
<!-- $Revision: 1.10 $ -->
<!-- splitted from ./en/functions/ftp.xml, last change in rev 1.32 -->
<refentry id='function.ftp-exec'>
<refnamediv>
@ -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<br />\n";
echo nl2br($res);
} else {
echo 'could not execute ' . $command;
}