mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
improving a bit
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@146793 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
7a0573c2cc
commit
72105c168e
1 changed files with 13 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- split from ./en/functions/ftp.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.ftp-cdup">
|
||||
<refnamediv>
|
||||
|
@ -27,12 +27,20 @@ $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";
|
||||
// change the current directory to html
|
||||
ftp_chdir($conn_id, 'html');
|
||||
|
||||
echo ftp_pwd($conn_id); // /html
|
||||
|
||||
// return to the parent directory
|
||||
if (ftp_cdup($conn_id)) {
|
||||
echo "cdup successful\n";
|
||||
} else {
|
||||
echo "cdup not successful\n";
|
||||
}
|
||||
|
||||
echo ftp_pwd($conn_id); // /
|
||||
|
||||
ftp_close($conn_id);
|
||||
?>
|
||||
]]>
|
||||
|
|
Loading…
Reference in a new issue