Home :: International :: Manuals :: Howto :: FAQ :: Man Pages :: Email Login
(PHP 3>= 3.0.13, PHP 4 , PHP 5)
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);?>
Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account
Document on this page is part of "Manuel PHP". See Index Page for more info about Authorship and Copyright.
1999-2009 Linuxinfor.com. No rights reserved.