![]() Topic awaiting preservation: PHP & Sockets (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: |
![]() Hey theres some people who are really great at PHP here and im sure some of you must be familiar with the IRC protocol so can you take a look at this please? code: <?
|
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() Um this isn't too complicated, I wouldn't make too many suggestions at this point except adding the begin line character to your PING preg |
Paranoid (IV) Inmate From: |
![]() Ok BitDamaged thanks for the speedy reply |
Paranoid (IV) Inmate From: |
![]() *bump* |
Paranoid (IV) Inmate From: Minneapolis, MN, USA |
![]() Well since socket_read stops at a newline or carriage return (\n\r), if there are two returns in the message of the day, your read would be empty and would evaluate to false, thus ending the loop. |
Paranoid (IV) Inmate From: |
![]() hmm ok.... that could be the problem |
Paranoid (IV) Inmate From: |
![]() Ok I know this is a preety dead thread, but I was flicking threw my projects on hold and I PHPBot came back up.. I've now got it to join the channel and stay on,and it even responds to some trigger commands code: <?php
|