“ganti nama file php” Kode Jawaban

ganti nama file php

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

PHP mengganti nama file dalam direktori

<?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

Jawaban yang mirip dengan “ganti nama file php”

Pertanyaan yang mirip dengan “ganti nama file php”

Lebih banyak jawaban terkait untuk “ganti nama file php” di PHP

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya