PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Just wondering if anyone could tell me if there is any reliable way of telling what name was used to call my site.
What I am getting at is, if the site is called with my external IP addy, then I want to have all pages referred to with that addy, as opposed to my actual domain name. And vise versa.
Basically, I guess I will need to somehow capture the url used to view the current page ... not the referrer ... just the actual address in the address bar.
Not sure about this one, with a main reason as I can test-and-try this myself, but consider looking into .htaccess use (if using Apache). Might find something interesting using that file.