Create dynamic web page, What shall i study?

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
g_p
Forum Newbie
Posts: 13
Joined: Sun Jan 25, 2009 9:49 am

Create dynamic web page, What shall i study?

Post by g_p »

Hello,

I would like to create a dynamic web page which is going to
1. recognise the IP address of every guest who visits the page,
2. and for every IP address to insert at that specific moment a message in the page in order for the guest to see it.
3. Also i would like to know which message belongs to each IP address.( i mean how am i supposed to store this information).

e.g.
IP Message
Guest : A.B.C.D. , How are you ? (I woukd like that to be stored somewhere)
Guest : G.H.I.J, Good morning! ( stored)

I would like then to create another program in C/C++, which takes as input "How are you?" and outputs "A.B.C.D".
This program is gonna be like this->> INPUT : ip address OUTPUT: Message

May you please tell me which tutorials or specific functions shall i study in order to create this dynamic web page? :?:

Thanks in advance! :)
User avatar
William
Forum Contributor
Posts: 332
Joined: Sat Oct 25, 2003 4:03 am
Location: New York City

Re: Create dynamic web page, What shall i study?

Post by William »

When you say it will give a specific message, where is this message data coming from? Are you going to randomly make it say a message for each IP address? To display an IP address in PHP it's as simple as echoing out the $_SERVER['REMOTE_ADDR'] variable. For storing this data might want to look into a database software like MySQL.

For tutorials just Google PHP & MySQL and start reading.
Post Reply