php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "script name"

What is the best way to retrieve the script name and all GET variables in PHP?

To retrieve the script name and all GET variables in PHP, you can use the $_SERVER['SCRIPT_NAME'] variable to get the script name and the $_GET superg...

What could be the reason for the incorrect output of the sender's name in the PHP script?

The incorrect output of the sender's name in the PHP script could be due to a typo or error in the variable name used to store the sender's name. To s...

What is the best practice for retrieving the domain name under which a PHP script is running?

To retrieve the domain name under which a PHP script is running, you can use the $_SERVER['HTTP_HOST'] variable. This variable contains the domain nam...

What potential issues can arise when using $_SERVER['PHP_SELF'] to get the current script name?

Using $_SERVER['PHP_SELF'] can potentially expose your code to Cross-Site Scripting (XSS) attacks if the script name is not properly sanitized. To pre...

What are some common methods to retrieve the name of the current running script in PHP?

To retrieve the name of the current running script in PHP, you can use the `$_SERVER['SCRIPT_NAME']` superglobal variable. This variable contains the...

Showing 1 to 5 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
  • Privacy
  • FAQ

© 2025 php.org. All rights reserved.