Note: This was originally posted in the Post-Installation forum ( http://drupal.org/node/70991 ), but received no response, and I felt it may be more suited to this forum.
I am quite new to Drupal, in fact CMS's in general. I am quite familiar with PHP development, including with application frameworks (currently using CakePHP).
I have a PHP script in a plugin for FCKEditor, and I want to display a list of Drupal nodes. My questions is:
How can I get this PHP script (which is called independantly by FCKEditor) access to the global Drupal functions (ie all the functions listed in the Drupal API)? I have require'd the "bootstrap.inc" file (which seems to be the launch point), after setting the appropriate include_path, but I am getting a number of other filesystem problems, as the script running is actually at "drupal-4.6.8\modules\fckeditor\lib\editor\dialog". Errors are things like this (database.inc lines 113 onwards)
$handler = "includes/database.$db_type.inc";
if (is_file($handler)) {
include_once($handler);
}
else {
die('Unsupported database type: ' . $db_type);
}
Of course, running in this fckeditor\lib\editor\dialog folder means relative file paths like this do not exist, no matter what the include_path is set to. The die command prints "Unsupported database type: mysql" , and drupal-4.6.8\includes\database.mysql.inc does exist.