Hi there, I am a newbie to this forum so please forgive me if I have posted this in the wrong section!
I am working on a user information page (for a hosting control panel). I need to be able to show the user what their domain name is (ie. it is a list of things about their local and remote settings and hosting account info on a phone support page).
However, our provider doesn't support extracting this data from their database. Therefore, thinking laterally, the only way (I can think of) to provide this info would be to check the http_referer (ip address?) and change that into a domain name (via DNS).
How would I do this?
The page is currently using ssi to display the user's own (local) IP address and Java to display which plugins they have installed (Flash, Acrobat, SVG, Shockwave etc...). I don't care which scripting language it is in as long as I can still provide the local IP address...
You will need to use the str_replace function to remove the 'http://' substring. You also have to split the string into array and take the first index.
Bookmarks