php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "pathinfo()"

What are the different methods to extract a file name without its extension in PHP?

To extract a file name without its extension in PHP, you can use the `pathinfo()` function to get the file name and then use `basename()` to extract t...

How can one ensure that a file name is extracted correctly without its extension in PHP?

To ensure that a file name is extracted correctly without its extension in PHP, you can use the pathinfo() function to get the file name without the e...

How can one effectively hide file extensions when displaying images in a PHP script?

To effectively hide file extensions when displaying images in a PHP script, you can use URL rewriting to mask the file extensions. This can help impro...

How can I ensure that the uploaded file is stored with the correct file extension in PHP?

When uploading a file in PHP, the file extension can sometimes be missing or incorrect, which can cause issues when accessing or using the file later...

How can you modify a PHP script to only display files that end with a specific extension, while excluding "." and ".." files?

To modify a PHP script to only display files that end with a specific extension while excluding "." and ".." files, you can use the scandir function t...

Showing 211 to 215 of 257 results

‹ 1 2 ... 40 41 42 43 44 45 46 ... 51 52 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.