mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Adding Example
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@146791 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
e8844eadb3
commit
7a0573c2cc
1 changed files with 25 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- split from ./en/functions/ftp.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.ftp-cdup">
|
||||
<refnamediv>
|
||||
|
@ -15,6 +15,30 @@
|
|||
<para>
|
||||
Changes to the parent directory.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title><function>ftp_cdup</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
// set up basic connection
|
||||
$conn_id = ftp_connect($ftp_server);
|
||||
|
||||
// login with username and password
|
||||
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
|
||||
|
||||
if (ftp_cdup($conn_id)) {
|
||||
echo "cdup successful\n";
|
||||
}else{
|
||||
echo "cdup not successful\n";
|
||||
}
|
||||
|
||||
ftp_close($conn_id);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
&return.success;
|
||||
</para>
|
||||
|
|
Loading…
Reference in a new issue