Jump to content

Recommended Posts

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!

I would like to create a dynamic web page which is going to

 

I assume PHP...  Have you tried anything yourself?

 

1) $ip = $_SERVER["REMOTE_ADDR"];

 

2) echo "your message " . $ip;

 

3) Learn MySQL and store it in a database.

 

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

 

This is the wrong forum for that question.

Hi, thanks for replying!

 

Well, i tried to use html, but it's better to use PHP.

I would like this dynamic web page to change dunamically according to the script/guest/client.

For example the client may want to scan my webpage for e.g. other links and it looks for the keyword "a href".

When my dynamic web page understands that, it shall generate that time a fake we can say internet destination or message e.g. http://www.fake.domain .

i guess that if another  guest visits the webpage, the new guest must not see the previous message the webpage had generated but a new one message.

 

The code you have posted me , it's going to work for the previous stuff?

 

I mean, is the web page going to change dynamically according to the IP address that visits/scans  it?

 

As far as the second program is concerned, i know C/C++, but i get confused how am i supposed to pass the information from the php, to that program.

E.g. let's say i have made a program which takes as input the message then the output shall be an IP address. How am i supposed to get information from PHP --> the program.

 

Thanks

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.