php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "file name manipulation"

How can you separate the file name from the file type in PHP?

To separate the file name from the file type in PHP, you can use the pathinfo() function to extract the file extension and then use basename() functio...

How can a PHP file be created to assign a specific name to a generated file?

To assign a specific name to a generated file in PHP, you can use the `rename()` function to rename the file after it has been created. This function...

What are the implications of using numeric values as file names in PHP, and how can this impact file manipulation functions like rename()?

When using numeric values as file names in PHP, it can lead to unexpected behavior when using file manipulation functions like rename(). This is becau...

How can security vulnerabilities be addressed when using 'name' from $_FILES as the file name on the server in PHP uploads?

When using 'name' from $_FILES as the file name on the server in PHP uploads, it can lead to security vulnerabilities such as directory traversal atta...

How can you assign a file name to a variable in PHP?

To assign a file name to a variable in PHP, you can use the `basename()` function to extract the file name from a path. This function returns the last...

Showing 11 to 15 of 10000 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 1999 2000 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.