lamia98 Posted April 14, 2014 Share Posted April 14, 2014 i found these codes online but i dont kno how to run them on the browser(localhost xamp) if anyone could help me that would be great here is the link for the codes https://github.com/super3/IRC-Bot/ Quote Link to comment https://forums.phpfreaks.com/topic/287758-how-to-run-an-irc-bot-in-php/ Share on other sites More sharing options...
QuickOldCar Posted April 14, 2014 Share Posted April 14, 2014 Looking at the documentation you edit config.php then visit http://localhost/phpbot404.php If all you want is a bot, it's much easier to use mirc to make your own scripts or download them from many places. If you want something for a website, consider lightirc or something like qwebirc Tried many irc frontends and most are undesirable, I love php, but have yet to find one irc frontend that actually can work well written in php. Quote Link to comment https://forums.phpfreaks.com/topic/287758-how-to-run-an-irc-bot-in-php/#findComment-1476081 Share on other sites More sharing options...
lamia98 Posted April 14, 2014 Author Share Posted April 14, 2014 Thanks for ur reply, I have tried this but it still doesnt run on the browser it only runs on shell Quote Link to comment https://forums.phpfreaks.com/topic/287758-how-to-run-an-irc-bot-in-php/#findComment-1476082 Share on other sites More sharing options...
kicken Posted April 14, 2014 Share Posted April 14, 2014 It's not supposed to run from the browser, no bot is. A bot is a script that will need to run continuously for a long time. These kinds of scripts are not supposed to be run from the browser via apache as you may have issues with the server killing it due to a timeout. Just run the script from the shell as designed, forget about running it via the browser. Quote Link to comment https://forums.phpfreaks.com/topic/287758-how-to-run-an-irc-bot-in-php/#findComment-1476126 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.