php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "current URL"

What are some methods to reliably retrieve the current URL in a PHP script, especially when using framesets?

When using framesets in a PHP script, retrieving the current URL can be a bit tricky because the URL in the browser may not always reflect the actual...

How can PHP be used to display different images based on the current URL?

To display different images based on the current URL in PHP, you can use a combination of conditional statements and HTML image tags. By checking the...

How can PHP's $_SERVER variable be used to retrieve information about the current URL?

To retrieve information about the current URL using PHP's $_SERVER variable, you can access elements such as $_SERVER['HTTP_HOST'] for the host name,...

How can PHP be used to customize menu items based on the current URL in a PHPBB forum?

To customize menu items based on the current URL in a PHPBB forum, you can use PHP to check the current URL and conditionally display or hide menu ite...

How can the current URL of a PHP file be obtained?

To obtain the current URL of a PHP file, you can use a combination of server variables like $_SERVER['HTTP_HOST'] and $_SERVER['REQUEST_URI']. These v...

Showing 11 to 15 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.