Snippets tagged “gethostname”
1 snippet uses this tag.
- How can I detect if the user is on localhost in PHP?PHP
You can use the $_SERVER['HTTP_HOST'] variable to detect if the user is on localhost in PHP.
1 snippet uses this tag.
You can use the $_SERVER['HTTP_HOST'] variable to detect if the user is on localhost in PHP.