“PHP Zmień nazwę plików w katalogu” Kod odpowiedzi

Zmień nazwę pliku php

 rename('old_filename.txt', 'new_filename.txt');
Beautiful Bug

PHP Zmień nazwę plików w katalogu

<?php rename ("/folder/file.ext", "newfile.ext"); ?>

The above doesn't rename the file within the folder, as you might assume, 
instead, it moves the file to whatever the PHP working directory is... 
Chances are you'll not find it in your FTP tree. 
Instead, use the following:

<?php rename ("/folder/file.ext", "/folder/newfile.ext"); ?>
Geeky Bravo

Odpowiedzi podobne do “PHP Zmień nazwę plików w katalogu”

Pytania podobne do “PHP Zmień nazwę plików w katalogu”

Więcej pokrewnych odpowiedzi na “PHP Zmień nazwę plików w katalogu” w PHP

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu