I want to have a non-Drupal website create a user account in my Drupal installation when a form is submitted. Is there a way to include (and otherwise initiate) the drupal APIs in a php script that is not inside a drupal module? I have tried including some include files as the “unknown function” errors keep coming up, but it has turned into a cat-and-mouse game.
Thank you for your help,
Jeff
Yep, use
services.module. It provides APIs for Drupal.Or:
edit: Per the comments, for command-line usage, you have to spoof
$_SERVERstuff that Drupal relies on (particularly the domain name):