draw data from irc with php

General discussions related to php

Moderators: egami, macek, gesf

Post Reply
asbirim
New php-forum User
New php-forum User
Posts: 1
Joined: Sun Oct 07, 2018 5:33 am

Sun Oct 07, 2018 5:45 am

Hello there,
I want to draw data from an irc server with php.
Example: irc.rizon.net
data I want to take: /lusers and /list
I want to print out the commands of these commands to a txt file with php.
I am installing an irc socket connection, but I cannot print the output of these commands to txt file.

the data I want to get:
/lusers
[16:40] == There are 22 users and 14881 invisible on 20 servers
[16:40] == 64 IRC Operators online
[16:40] == 10998 backgrounds formed
[16:40] == I have 14903 clients and 20 servers
[16:40] == Current local users: 14903 Max: 16659
[16:40] == Current global users: 14903 Max: 16659

/list
[16:36] == #dathack 1 [+ nt]
[16:36] == #mlppetplay 1 [+ nt]
[16:36] == # dpkg.test 1 [+ nt]
[16:36] == # primera.hungary 3 [+ cntz] office primera szoba
[16:36] == #italia 0 [+ ntz]
[16:36] == #gr 3 [+ nt]
[16:36] == #gz 3 [+ ntz]

I will use this data on the website for the statistics of channel and server status.

Please help :(

I couldn't find the sources in the country I live in.

Post Reply