Detecting a Host(s) IP and displaying a page accordingly.

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!

Moderator: General Moderators

Post Reply
DJ-Ultrez
Forum Newbie
Posts: 1
Joined: Sat Mar 22, 2008 3:16 pm

Detecting a Host(s) IP and displaying a page accordingly.

Post by DJ-Ultrez »

Hi there,

Havn't been using PHP very long, and although I have muddled my way through so far, I have reached a brick wall. I guess I should go out and buy a book. On the offchance though, I thought I would ask here.

I work for a radio station, and I've setup all the relevant files, so that each DJ, now has a playlist and whoever is tuned into the radio station, can look at the DJs playlist, and request songs, this all runs very nicely and uses MySQL. All the pages used are either .php or JS.

The issue isn't with that at all. On the main page, I want the webpage to determine the DJs IP Address, and once it has this, I want it to go find the pages, for that DJ, and display them on the front page. Thus making the life of the listener tuned in, as easy as possible.

Anyone know how this could be achieved?

Thanks.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: Detecting a Host(s) IP and displaying a page accordingly.

Post by Weirdan »

I want the webpage to determine the DJs IP Address
Your DJs are equipped with network adapters? :D What is 'DJs IP address'?
Post Reply