• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Some help dealing with a website/script?

DAM

Diamond Member
Yes I know there is a forum for this, but the tumble weeds are not much help.

Ok here is what I need, I need to setup a site that listens to maybe a specific port, and everytime that port is hit, the server keeps a log of it. Ideally I would want to hit that port with some ID on it, the server machine will listen to the request and record the ID that came in. But I have no idea how the hell to do this. If possible I would like this to be done with PHP/MySQL.

So anyone know anything about this, maybe some sites to look at, some books to read, etc etc.


Thanks,

dam()


 
Well I would like to dynamically display the log on a website, thanks for the link, i had a feeling eventually i would have to phase pearl.



dam()
 
Since a webserver doesn't have to run on port 80 you could do this using HTTP messages and the scripting language of your choice.

For a Windows box (PC or server) you could also code this up pretty easily as HTTP or non-HTTP using VB6 or VC6.

[ ed ] you could also be running 2 webservers on the box, one bound to port 80 the other bound to your logging port, with the logging server writing to a disk file that the normal server then displays.
 
I can show you how to do this in PHP. There's a nice little script that I have taht can do this. PM if you still ened some help later tonight. I'll be home after 9pm.
 
Alright, I was thinking about, I misread your post by a little bit. I assumed you wanted the script to check the port at any given time. PHP is a robust langauge, but just short of pinging a port every .5 seconds, PHP doens't ahve the ability of listening on a port, that I KNOW of. I will research this a little further when i get home and I'll tell you what i know after I find out. 🙂
 
Thanks.


Yeah I suck at explaining things.

I want to set a script to ping a server at a given port with some ID. The server will listen for that ping, and record the time and the ID assosciated with it.


I hope that's a little clearer.


dam()
 
Back
Top