About 57 results
Open links in new tab
  1. php - Get current domain - Stack Overflow

    May 23, 2012 · Feel free to edit this answer to include how to get the current domain in your favorite framework. When doing so, please include a link to the relevant source code or to anything else that …

  2. Getting current domain + directory in php - Stack Overflow

    So, I've found a way to get the current directory using dirname(__FILE__) and getting the domain with $_SERVER['HTTP_HOST']. While both of these are well and good, they aren't quite what I need …

  3. How to get current domain and directory name dynamically php …

    May 30, 2022 · How to get current domain and directory name dynamically php wordpress Asked 3 years, 7 months ago Modified 3 years, 7 months ago Viewed 2k times

  4. PHP get domain name - Stack Overflow

    Jul 30, 2013 · Closed 5 years ago. I want to get the domain name for where the script is running. How can that be done with PHP? I see that $_SERVER['HTTP_HOST'] as well as …

  5. PHP how to get the base domain/url? - Stack Overflow

    May 11, 2017 · How I understand the question is how to get the domain segment without knowing what the domain is. That is, relative to the page you are loading. What if you are testing locally, then …

  6. How to get URL of current page in PHP - Stack Overflow

    In PHP, how can I get the URL of the current page? Preferably just the parts after http://domain.example.

  7. php - Parsing domain from a URL - Stack Overflow

    The code that was meant to work 100% didn't seem to cut it for me, I did patch the example a little but found code that wasn't helping and problems with it. so I changed it out to a couple of functions (to …

  8. How to get the current domain name? (Not the path, etc.)

    I plan on buying two domain names for the same site. Depending on which domain is used I plan on providing slightly different data on the page. Is there a way for me to detect the actual domain n...

  9. How to get current server path, url domain, filename or script name in …

    Aug 29, 2019 · When working with a script in PHP, I need to know what its current folder and path is, both from the server point of view and the domain url point of view. I also need the filename or script …

  10. Can you get a Windows (AD) username in PHP? - Stack Overflow

    Oct 3, 2008 · 50 I have a PHP web application on an intranet that can extract the IP and host name of the current user on that page, but I was wondering if there is a way to get/extract their Active …