I prefer to use cURL, but how do you use that properly? Do you mean the "curl" from the command line, or the equivalent PHP function that acts like it?
Run the commad using "exec" function? On Mon, May 11, 2009 at 3:29 AM, Roan Kattouw <[email protected]>wrote: > 2009/5/10 Rezuan Asrah <[email protected]>: > > 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? > > Use cURL, or a PHP client library [1]. > > Roan Kattouw (Catrope) > > [1] http://www.mediawiki.org/wiki/API:Client_Code#PHP > > _______________________________________________ > Mediawiki-api mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/mediawiki-api > -- Rezuan Asrah question = ( to ) ? be : ! be; -- Wm. Shakespeare http://elusi.blogspot.com
_______________________________________________ Mediawiki-api mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
