Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

SmartIRC
Hi there,

Firstly I'd like to say that you guys have done an awesome job
so far, keep it up!

Here's my situation:

I want to use SmartIRC to send messages on the fly to an IRC
channel for a monitoring type solution. Now, I can start the bot and connect
and send messages all that from the one script, but obviously I don't want
to have to start a new bot every time. I want to send a message to the
channel using the same bot but, as I said before, "on the fly".

Basically I need it to do the following: when someone sends a query to a
database, the php script sends information about it to the IRC channel via
SmartIRC. As I said, I don't want to constantly create new bots; so
basically my question is:

Can I use a running bot from another script?
How?

I hope you can help me, you guys provide a good alternative to recompiling
php with ircg support.

Thanks for you time,

-James Horne


Report this thread to moderator Post Follow-up to this message
Old Post
James Horne
03-26-05 08:57 AM


Re: SmartIRC
James Horne wrote:
>             Can I use a running bot from another script?
>             How?

Not having ever looked at SmartIRC's code, the safest way would be to
have an intermediary table that contains information to spit to the
channel, and have the bot check the table for new rows while idling.
When it finds them, it would delete, then display the rows.

The other end would simply insert the thing to display into the table.

Be aware - if anyone can access the script that does the queries, you
are vulnerable to all kinds of nasty attacks (imagine your bot flooding
out as someone does DoS attacks... bad)

Good luck :)
Greg

Report this thread to moderator Post Follow-up to this message
Old Post
Greg Beaver
03-26-05 08:57 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Pear archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:53 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.