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!
1) get a http packet from my client
2) from the packet i need to know my client ip and machine name
3) Then send in my the back a message that i have received the request
Thanks for the replay...but How do i accept http request from my client, for example lets say my client sends me a string "Hi"... how do i accept this request and then write a function to get the client's ip and machine name
Then send back a response saything that request received...
Most probably you have register_globals off so $REMOTE_ADDR and $REMOTE_HOST means nothing to PHP. And also, you'll need to call the file as file.php?message=the_message.
Also, Nay / Charp:
After reading your post Nay and feeling quite embarassed for not covering what should have been covered I went over to the PHP man and did some reading, appearantly you can also do this by using the function
getenv(). http://us2.php.net/getenv