streamWrapper::rename
(PHP 5)
streamWrapper::rename — Renames a file or directory
Beschreibung
This method is called in response to rename().
Should attempt to rename path_from to path_to
Hinweis: In order for the appropriate error message to be returned this method should not be defined if the wrapper does not support creating directories.
Parameter-Liste
- path_from
-
The URL to the current file.
- path_to
-
The URL which the path_from should be renamed to.
Rückgabewerte
Gibt bei Erfolg TRUE zurück, im Fehlerfall FALSE.
Fehler/Exceptions
Wirft E_WARNING, wenn der Aufruf dieser Methode fehlschlug (z.B. weil sie nicht implementiert ist).
Anmerkungen
Hinweis: Die streamWrapper->Kontext-Eigenschaft wird, wenn verfügbar, aktualisiert, wenn der aufrufenden Funktion ein gültiger Kontext übergeben wurde.
streamWrapper::rename
