php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "filename length"

When should pathinfo be used to extract a filename in PHP?

Pathinfo should be used to extract a filename in PHP when you need to retrieve specific parts of a file path, such as the filename, extension, directo...

How can PHP be used to determine the filename of the current page being displayed?

To determine the filename of the current page being displayed in PHP, you can use the $_SERVER['PHP_SELF'] superglobal variable. This variable contain...

What PHP function can be used to retrieve the filename of a PHP script?

To retrieve the filename of a PHP script, you can use the `basename()` function in PHP. This function takes a path as an argument and returns the file...

What function can be used in PHP to extract the filename from a URL?

To extract the filename from a URL in PHP, you can use the `basename()` function. This function returns the trailing name component of the path, which...

How can the filename be shortened before the file is written when uploading a file in PHP?

When uploading a file in PHP, you can shorten the filename before it is written by using the "pathinfo" function to get the file extension and then ge...

Showing 11 to 15 of 2510 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 501 502 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.