php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "listing"

What are some best practices for listing directories without including files in PHP?

When listing directories in PHP, it is common to inadvertently include files along with directories. To avoid this, you can use the `is_dir()` functio...

What are some common methods in PHP to prevent directory listing and secure website files?

To prevent directory listing and secure website files in PHP, you can disable directory listing in your web server configuration or create an index.ph...

What are the potential security risks of allowing directory listing in PHP?

Allowing directory listing in PHP can pose a security risk as it exposes the internal structure of the server to potential attackers. This can lead to...

What are the potential drawbacks of listing directories directly in PHP scripts?

Listing directories directly in PHP scripts can pose security risks as it exposes the directory structure of the server to potential attackers. This i...

How can specific subdirectories be excluded from the file listing process in a PHP script?

To exclude specific subdirectories from the file listing process in a PHP script, you can use the `glob()` function with the `GLOB_BRACE` flag to spec...

Showing 6 to 10 of 281 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 56 57 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.