php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "file name manipulation"

What are the differences between using pathinfo() and getimagesize() functions in PHP for file manipulation tasks?

When working with file manipulation tasks in PHP, the pathinfo() function is used to extract information about a file path, such as the directory name...

How can the file extension be extracted from a file name in PHP, especially when the file name may contain periods?

When extracting a file extension from a file name in PHP, especially when the file name may contain multiple periods, we can use the pathinfo() functi...

How can you retrieve the current file name in PHP?

To retrieve the current file name in PHP, you can use the `basename()` function along with the `__FILE__` magic constant. This function will return th...

How can the file name be changed during download in PHP?

When downloading a file in PHP, you can change the file name by setting the "Content-Disposition" header with the desired file name. This can be achie...

What alternative approach can be used to access the name in the Date item in the XML file?

When accessing the name in the Date item in an XML file, an alternative approach would be to use SimpleXML in PHP. SimpleXML provides an easy way to a...

Showing 6 to 10 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.