php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "rename()"

How can PHP be used to rename a file, such as changing "bild.jpg" to "bild2.jpg"?

To rename a file in PHP, you can use the `rename()` function. This function takes two parameters: the current file name and the new file name. In this...

What is the best way to rename multiple files in a folder using PHP?

When renaming multiple files in a folder using PHP, one approach is to loop through each file in the directory and use the `rename()` function to chan...

What potential errors can occur when using the rename() function in PHP?

When using the rename() function in PHP, potential errors can occur if the source file does not exist, the destination file already exists, or if the...

How can PHP be used to automatically rename files based on their determined file type?

To automatically rename files based on their determined file type using PHP, you can use the `pathinfo()` function to extract the file extension and t...

What is the most efficient way to rename multiple images using a PHP script?

When renaming multiple images using a PHP script, the most efficient way is to use a loop to iterate through each image file and rename them according...

Showing 11 to 15 of 351 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 70 71 ›
PHP.ORG

A free knowledge base for PHP developers. Open to all.

Legal

  • About
  • Contact / Imprint
  • Terms
  • Privacy
  • FAQ

© 2025 php.org. All rights reserved.