if u open up Command Prompt and run this comand ull be able to view the users online on my rose server.
dose any one know how i can include this in my site?Code:telnet s-mu.no-ip.info 29300
Printable View
if u open up Command Prompt and run this comand ull be able to view the users online on my rose server.
dose any one know how i can include this in my site?Code:telnet s-mu.no-ip.info 29300
yes what you need is the PHP fsock functions...I don't know them off the top of my head but look around in the php manual and I think you will work out how to do it quite easily... is that a TCP or UDP port?
Yeah i do, read fragfrogs coding ;).
Easier is, simply execute the command :D
In php:
Do note thats not a single quote (') but a backtick operator (`). For more info, PHP: Execution Operators - ManualCode:$ingo = `telnet s-mu.no-ip.info 29300`
i dont recommend ever using that...
if u ever comes a time that u have to... dont make it run everytime some1 s on the page.. or ull have millions of Msdos poping out of ur computer.
i suggest a timeout code. like 1s every hour or so
well, I had done something similar with pstools, I also checked if the process was complete after few seconds of execution and if it's not - just exec pskill for that process and it wouldn't make multiple threads if you check if any other process is acquiring the info, and, as I said it should be cached for some seconds between new request is done.
but everything could be done using socks.. would be prevented execution of external apps..
Couldn't agree with you more lexx :)