0 Members and 1 Guest are viewing this topic.
<?/** start.php - Starts and restarts the bot** BeBot - An Anarchy Online Chat Automaton* Copyright (C) 2004 Jonas Jax** Developed by Blondengy (RK1)* Special thanks goes out to Khalem (RK1) for his support.** File last changed at $LastChangedDate: 2005-12-13 01:34:04 +0100 (Tue, 13 Dec 2005) $* Revision: $Id: start.php 37 2005-12-13 00:34:04Z shadowmaster $*//*Edit the following two lines:*/$php_bin = "php4";$main_php = "main.php";/*Configuration for Windows with bot and php.exe in the same directoryyou're staring the bot from$php_bin = "php.exe";$main_php = "main.php";*//*Configuration for Windows with bot and php.exe different directorys$php_bin = "C:\php\php.exe";$main_php = "C:\BeBot\main.php";*/while (true){ $last_line = system($php_bin . " " . $main_php); if (preg_match("/^The bot has been shutdown/i", $last_line)) die(); else sleep(1);}?>
Open a console (In windows press "Start" => "Run" => enter "cmd" and pressenter).
Now run the start.php
Windows: Navigate to the directory of your bot assuming you have thephp.exe in the same directory and write "php start.php".Linux: Assuming your can run php4 from anywhere navigate to your botdirectory and write "php4 start.php" (assuming your php binary is named"php4").
Sounds like you don't have php installed on your system.
Erm, where did my post go o-oAnyways... what it said:Open up cmd prompt,cd \cd <whereever you put the bebot directory>When inside, type "dir" to make sure you see a start.php and php.exe.If you see that, type the php start.phpIf you installed PHP to your computer, then use php4 start.php instead. (as I think the default is now php4 and not php, could be mistaken though )