downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

streamWrapper::rmdir> <streamWrapper::mkdir
Last updated: Sun, 16 Aug 2009

view this page in

streamWrapper::rename

(PHP 5)

streamWrapper::renameRenomme un fichier ou un dossier

Description

public bool streamWrapper::rename ( string $path_from , string $path_to )

Cette méthode est appelée en réponse à rename().

Doit renommer le fichier path_from en path_to

Note: Afin d'appeler le bon message d'erreur, cette méthode ne doit pas être définie, si le gestionnaire ne supporte pas le renommage de dossiers ou de fichiers.

Liste de paramètres

path_from

L'URL du fichier en cours.

path_to

La nouvelle URL path_from avec laquelle le fichier doit être renommé.

Valeurs de retour

Cette fonction retourne TRUE en cas de succès, FALSE en cas d'échec.

Erreurs / Exceptions

Émet une alerte E_WARNING si l'appel à cette méthode échoue (i.e. pas implémenté).

Notes

Note: La propriété streamWrapper->context est mise à jour si un contexte valide est passé à la fonction.

Voir aussi

  • rename() - Renomme un fichier ou un dossier



add a note add a note User Contributed Notes
streamWrapper::rename
There are no user contributed notes for this page.

streamWrapper::rmdir> <streamWrapper::mkdir
Last updated: Sun, 16 Aug 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites