(PHP 4, PHP 5, PHP 7, PHP 8) rename — Renames a file or directory Descriptionrename(string Parametersfrom The old name.
to The new name.
context A context stream resource. Return Values Returns ExamplesExample #1 Example with rename()
See Also
andrew at 21cv dot co dot uk ¶ 12 years ago
("/folder/file.ext", "newfile.ext");?> ben at indietorrent dot org ¶ 7 years ago
michael-nospam at sal dot mik dot hyperlink dot net dot au ¶ 22 years ago
mike ¶ 8 years ago
pcdinh at phpvietnam dot net ¶ 13 years ago
Whooptydoo ¶ 14 years ago
Martin Pelletier ¶ 11 years ago
bcag2 at free dot fr ¶ 9 years ago
=iconv("UTF-8", "CP1252", "C:\\wamp\\www\\tést.txt"); php at stock-consulting dot com ¶ 16 years ago
sophie at sitadelle dot com ¶ 18 years ago
Eric (Themepark.com) ¶ 15 years ago
tomfelker at gmail dot com ¶ 17 years ago
David Thole (root at thedarktrumpet.com) ¶ 15 years ago
php-public at macfreek dot nl ¶ 16 years ago
tbrillon at gmail dot com ¶ 17 years ago
dev at islam-soft dot com ¶ 15 years ago
eregi("\.$ext1",$file)) { # Look at only files with a pre-defined extension ddoyle [at] canadalawbook [dot] ca ¶ 17 years ago
andrew at iwebsolutions dot co dot uk ¶ 13 years ago
$return_val == 0) {
php at froghh dot de ¶ 16 years ago
PHP at Drarok dot com ¶ 16 years ago
lord dot dracon at gmail dot com ¶ 4 years ago
tomv ¶ 5 years ago
mike at mbfisher dot com ¶ 7 years ago
Robert ¶ 8 years ago
= 'testFile.txt';
Morteza ¶ 12 years ago
getDirectory( $path = '.', $level = 0 ){$ignore = array( 'cgi-bin', '.', '..' );$dh = @opendir( $path ); pearcec at commnav dot com ¶ 21 years ago
|