php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "file name"

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

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

What are the advantages of using a randomly generated file name for uploaded files and storing the original file name in a database?

Using a randomly generated file name for uploaded files adds an extra layer of security by making it harder for malicious users to access sensitive in...

How can the issue of the file name remaining empty during a file upload be resolved in the provided PHP script?

The issue of the file name remaining empty during a file upload can be resolved by checking if the file name is empty before moving the uploaded file...

Showing 6 to 10 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.