By kors4r on
Hi!
I have 2 drupal sites. I need to retrive from 1st site node information and submit it on 2nd site (and from 2nd to 1st).
I'm newbie, so I looked for some examples and can't find it. I saw this post, but probably it is not a php-code.
Can anyone show me exapmles of code to retrive node information from 1st site to other site? I need to include this code in module file.
Should I enable drupal.module on this 2 sites if I want to use xmlrpc.php?
Best regards and thanks for any help.
kors4r
Comments
I meen xmlrpc.php, of course
sorry...
now I see in drupal.module
now I see in drupal.module this code (line - 315):
am I write????
in this case function xmlrps():
1. first connect to http://serwer.adress.net/xmlrpc.php file,
2. run function drupal_login() from drupal.module with variable: $username, $password
so, if on 1st site I have module: my.module, and in this module function my_something($param1, $param2) then if I want to run this function from 2nd site, I should run on 2nd site:
IS IT SO SIMPLE?????
best regards
:) I got it!!!
I got it!!!!
for other drupal users:
I have 2 sites, on first I have mymodule.module, with this code:
on 2nd site I have mymodule2.mymodule, with:
8)
I'm very proud
best regards for everyone!