php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "directory name"

What function can be used to get the directory name from __FILE__ in PHP?

To get the directory name from __FILE__ in PHP, you can use the dirname() function. This function takes a path as input and returns the directory name...

What is the best way to extract the last directory name from a path in PHP?

To extract the last directory name from a path in PHP, you can use the `basename()` function along with the `dirname()` function. First, use `dirname(...

How can you check if a directory with a specific name exists in PHP?

To check if a directory with a specific name exists in PHP, you can use the `file_exists()` function along with the `is_dir()` function. First, use `f...

Is it possible to automatically create a new directory for uploaded files and assign a numerical name to each directory using PHP?

To automatically create a new directory for uploaded files and assign a numerical name to each directory using PHP, you can use the mkdir() function a...

What function can be used in PHP to remove the last directory name from a path string?

To remove the last directory name from a path string in PHP, you can use the `dirname()` function. This function returns the parent directory's path o...

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.