php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "listing files"

How can the use of glob() function in PHP help in filtering out unwanted files from a directory listing?

When listing files in a directory using PHP, the glob() function can be used to filter out unwanted files based on specific criteria such as file exte...

What potential issues can arise from not filtering out "." and ".." when listing files in a directory with PHP?

Not filtering out "." and ".." when listing files in a directory with PHP can lead to security vulnerabilities such as directory traversal attacks. To...

What potential issue could arise from listing files in a directory using PHP?

One potential issue that could arise from listing files in a directory using PHP is exposing sensitive information, such as configuration files or use...

In PHP, what are the advantages and disadvantages of using readdir versus glob() for listing and sorting files in a directory?

When listing and sorting files in a directory in PHP, readdir() is a lower-level function that allows more control over the process, such as sorting f...

How can directory listing be disabled for files in a PHP project?

Directory listing can be disabled for files in a PHP project by adding a .htaccess file with the directive "Options -Indexes" in the directory you wan...

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.