Page 1 of 1

Create dynamic web page, What shall i study?

Posted: Sun Jan 25, 2009 10:08 am
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! :)

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

Posted: Sun Jan 25, 2009 11:07 am
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.