g_p_java Posted January 25, 2009 Share Posted January 25, 2009 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! Quote Link to comment https://forums.phpfreaks.com/topic/142354-create-dynamic-web-page-what-shall-i-study/ Share on other sites More sharing options...
Maq Posted January 25, 2009 Share Posted January 25, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/142354-create-dynamic-web-page-what-shall-i-study/#findComment-745881 Share on other sites More sharing options...
g_p_java Posted January 25, 2009 Author Share Posted January 25, 2009 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 Quote Link to comment https://forums.phpfreaks.com/topic/142354-create-dynamic-web-page-what-shall-i-study/#findComment-745890 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.