mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fixed example
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@161721 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
8602477ddb
commit
f0b6926e11
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue