Accessing Drupal from external website

Jonas E - October 20, 2009 - 02:00

Hi everybody, I have a Drupal system which has a heavily customized search engine. I would like to offer the search as widget for Wordpress. We've successfully created the code (blog.planetabroad.com -> right hand) and it works great as long as the wordpress installation is on the same server as Drupal (because I have to include bootstrap.inc so I use chdir($drupal_path));

Now - the question is how can I get this widget to work from other peoples' servers? I tried creating a php script which just includes bootstrap.inc and calls drupal_bootstrap but even for that I have to be on the same server in order to properly include it.

Any ideas/comments/links?

Thank you very much in advance.

Jonas

Is this the wrong forum or

Jonas E - October 22, 2009 - 04:35

Is this the wrong forum or didn't anybody ever try this before?

Thanks,
Jonas

Services Module

bsenftner - October 22, 2009 - 07:19

Have you had a look at the Services module?
http://drupal.org/project/Services

A standardized solution of integrating external applications with Drupal. Service callbacks may be used with multiple interfaces like XMLRPC, JSON, REST, SOAP, AMF, etc. This allows a Drupal site to provide web services via multiple interfaces while using the same callback code. This is similar to what Flickr provides with their Flickr API Services.

Thank you for that, looks

Jonas E - November 1, 2009 - 05:32

Thank you for that, looks very interesting - a bit heavy weight for now but definitely highly interesting for the future.

 
 

Drupal is a registered trademark of Dries Buytaert.