I am using PHP4.3.2 on my personal computer with Windows XP. I have never got this error before. I fixed it by using getprotobyname("TCP") instead of SOL_TCP. And yes the sockets extension is loaded.
I have another quick question, and wanted to ask without opening another topic. I uploaded the bot to my FreeBSD shell account and well, it doesn't want to work right.
Jun 04 20:22:20 DEBUG_ACTIONHANDLER: actionhandler(0) registered
Jun 04 20:22:20 DEBUG_ACTIONHANDLER: actionhandler(1) registered
Jun 04 20:22:20 DEBUG_ACTIONHANDLER: actionhandler(2) registered
Jun 04 20:22:20 DEBUG_MODULES: loading module: "monitor"...
Jun 04 20:22:20 DEBUG_MODULES: successful created instance of: Net_SmartIRC_mod$
Jun 04 20:22:20 DEBUG_MODULES: calling Net_SmartIRC_module_monitor::module_init$
Jun 04 20:22:20 DEBUG_ACTIONHANDLER: actionhandler(3) registered
Jun 04 20:22:20 DEBUG_MODULES: successful loaded module: monitor
Jun 04 20:22:20 DEBUG_CONNECTION: connecting
Jun 04 20:22:20 DEBUG_SOCKET: using real sockets
Jun 04 20:22:20 DEBUG_CONNECTION: connected
Jun 04 20:22:20 DEBUG_CONNECTION: logging in
Jun 04 20:22:20 DEBUG_IRCMESSAGES: sent: "NICK TheWatcher"
Jun 04 20:22:20 DEBUG_IRCMESSAGES: sent: "USER watch 8 * :I am Watching YOU!"
It stops once it sends USER. Do you have any ideas on this problem?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hhhmm this is strange, I just tried with PHP 4.3.2 without any problems, SOL_TCP works too...
Try without realsockets... maybe with fsock* it will work..
maybe on BSD some constants for the sockets are not avialable, but I am not sure about this..
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I just tried using fsock instead of readsockets on my FreeBSD shell and still no luck. Is there anything I can do to try and figure this out? I would like to be able to upload my bots to a shell so they can be more stable, and FreeBSD is the only one I have access to.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I just recently started getting this socket_create() warning that seems to revovle around another error which is:
Use of undefined constant SOL_TCP
I don't get why that would happen, since I know SOL_TCP is a constant that should be defined by PHP correct? Any ideas on this error?
this shouldn't happen, which PHP version are you using and does your PHP build has socket extension loaded.
I am using PHP4.3.2 on my personal computer with Windows XP. I have never got this error before. I fixed it by using getprotobyname("TCP") instead of SOL_TCP. And yes the sockets extension is loaded.
I have another quick question, and wanted to ask without opening another topic. I uploaded the bot to my FreeBSD shell account and well, it doesn't want to work right.
Jun 04 20:22:20 DEBUG_ACTIONHANDLER: actionhandler(0) registered
Jun 04 20:22:20 DEBUG_ACTIONHANDLER: actionhandler(1) registered
Jun 04 20:22:20 DEBUG_ACTIONHANDLER: actionhandler(2) registered
Jun 04 20:22:20 DEBUG_MODULES: loading module: "monitor"...
Jun 04 20:22:20 DEBUG_MODULES: successful created instance of: Net_SmartIRC_mod$
Jun 04 20:22:20 DEBUG_MODULES: calling Net_SmartIRC_module_monitor::module_init$
Jun 04 20:22:20 DEBUG_ACTIONHANDLER: actionhandler(3) registered
Jun 04 20:22:20 DEBUG_MODULES: successful loaded module: monitor
Jun 04 20:22:20 DEBUG_CONNECTION: connecting
Jun 04 20:22:20 DEBUG_SOCKET: using real sockets
Jun 04 20:22:20 DEBUG_CONNECTION: connected
Jun 04 20:22:20 DEBUG_CONNECTION: logging in
Jun 04 20:22:20 DEBUG_IRCMESSAGES: sent: "NICK TheWatcher"
Jun 04 20:22:20 DEBUG_IRCMESSAGES: sent: "USER watch 8 * :I am Watching YOU!"
It stops once it sends USER. Do you have any ideas on this problem?
hhhmm this is strange, I just tried with PHP 4.3.2 without any problems, SOL_TCP works too...
Try without realsockets... maybe with fsock* it will work..
maybe on BSD some constants for the sockets are not avialable, but I am not sure about this..
I just tried using fsock instead of readsockets on my FreeBSD shell and still no luck. Is there anything I can do to try and figure this out? I would like to be able to upload my bots to a shell so they can be more stable, and FreeBSD is the only one I have access to.
I am trying to get this problem figured out, and I left the process running to see if it was just EXTREMELY SLOW. Well after awhile I got this error:
<b>Notice</b>: Undefined index: name in <b>/usr/home/mlehner/watcher/SmartIRC.php</b> on line <b>903</b><br />
Well line 903 is part of the reconnect function for SmartIRC. I am using the latest CVS version.