php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "path"

What is the best way to extract the document path from a URL in PHP?

To extract the document path from a URL in PHP, you can use the parse_url function to break down the URL into its components and then access the "path...

How can you use RecursiveIterator to only display the file names without the path in PHP?

To display only the file names without the path using RecursiveIterator in PHP, you can use the `basename()` function to extract just the file name fr...

How can one ensure that the attachment path is correctly specified when using PHPMailer in PHP?

When specifying the attachment path in PHPMailer, it is important to provide the full server path to the file rather than a relative path. This ensure...

How can file and path names be properly validated when using shell_exec in PHP?

When using shell_exec in PHP, it is important to properly validate file and path names to prevent security vulnerabilities such as command injection....

What are the best practices for adding PHP to the Windows system path?

When adding PHP to the Windows system path, it is important to ensure that the PHP executable can be accessed from any directory in the command prompt...

Showing 46 to 50 of 6173 results

‹ 1 2 ... 7 8 9 10 11 12 13 ... 1234 1235 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.