'localhost', 'REMOTE_ADDR' => '127.0.0.1', 'REQUEST_METHOD' => 'GET', 'SCRIPT_NAME' => 'index.php', 'SCRIPT_FILENAME' => 'index.php', 'QUERY_STRING' => '', ); //$drup_path = '/home/ju/public_html/drupal-5.7/'; $drup_path = '/home/ju/public_html/intel_fp/'; chdir($drup_path); require_once 'includes/bootstrap.inc'; drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); ob_get_clean(); echo 'Go...', PHP_EOL; readline_read_history('rl_history.txt'); $fp = fopen('rl_history.txt', 'a'); while (TRUE) { $line = readline('> '); if ('bye' === $line) { break; } readline_add_history($line); fputs($fp, "$line\n"); eval($line); }