I'm using Craft Pro 2.3.2625
I'm trying to write a command-line called script which can call Craft's functions (to create new entries with assets).
Based on Brandon's updated answer here:
Bootstrap Craft from another app
Using:
$craft = require 'craft/app/bootstrap.php';
in a standalone script should just work after Craft 2.2 - but doing so gives me the following errors (paths tweaked to remove project name):
PHP Notice: Undefined index: SERVER_NAME in craft/app/bootstrap.php on line 105
Notice: Undefined index: SERVER_NAME in craft/app/bootstrap.php on line 105
Notice: Undefined property: Craft\WebApp::$request in craft/app/controllers/TemplatesController.php on line 156
Fatal error: Call to a member function isSiteRequest() on a non-object in craft/app/controllers/TemplatesController.php on line 156