ftp_pwd
(PHP 3>= 3.0.13, PHP 4 , PHP 5)
ftp_pwd -- Retourne le nom du dossier courant
Description
string
ftp_pwd ( resource ftp_stream)
ftp_pwd() retourne le nom du dossier courant,
ou FALSE en cas d'erreur.
Exemple 1. ftp_pwd() example
<?php
/* Connexion */ $conn_id = ftp_connect($ftp_server);
/* Identification */ $login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
/* Change le répertoire courant en public_html */ ftp_chdir($conn_id, 'public_html');
/* Affiche le répertoire courant */ echo ftp_pwd($conn_id); // /public_html
/* Fermeture de la connexion */ ftp_close($conn_id); ?>
|
|