php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "listing files"

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

In PHP, what are some alternative methods for listing files in directories without including hidden files like "." and ".."?

When listing files in directories using PHP, the `scandir()` function includes hidden files like "." and ".." by default. To exclude these hidden file...

How can one differentiate between directories and files when listing them in PHP?

When listing directories and files in PHP, you can differentiate between them by using the is_dir() function to check if an item is a directory or not...

How can PHP be used to determine files and folders in a directory for creating an index listing?

To determine files and folders in a directory for creating an index listing in PHP, you can use the `scandir()` function to scan the directory and ret...

Showing 1 to 5 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.