I prefer to use cURL, but how do you use that properly?
2009/5/10 Rezuan Asrah <rezuan7@gmail.com>:
> This might sound silly since I'm a newbie but what would be the best way toUse cURL, or a PHP client library [1].
> 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?
Roan Kattouw (Catrope)
[1] http://www.mediawiki.org/wiki/API:Client_Code#PHP
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api