[Mediawiki-api] The best way to call the API from a php script

Rezuan Asrah rezuan7 at gmail.com
Sun May 10 17:13:45 UTC 2009


This might sound silly since I'm a newbie but what would be the best way to
call the API from a php script ?
This is what I did :-

<?php
echo exec( "lynx -dump
http://en.wikipedia.org/w/api.php?action=opensearch&search=Malaysia&format=xml"
);
?>

Any suggestions?

-- 
Rezuan Asrah
question = ( to ) ? be : ! be; -- Wm. Shakespeare

http://elusi.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wikimedia.org/pipermail/mediawiki-api/attachments/20090511/778c120e/attachment.htm 


More information about the Mediawiki-api mailing list