You can use $response = json_decode(file_get_contents($url))
MediaWiki API with PHP [duplicate]
-
02-07-2022 - |
Pergunta
Okay I wish to make a simple program that fetches the latest edits from a MediaWiki site (namely Wikias Community Central) and displays them neatly in a table. I know how to get all the display and sorting stuff code made but I cannot for the life of me figure out how to get the info from the server. I know in javascript I can create an ajax request to an api.php document which contains several url variables. Is there a similar way to do this in PHP as well?
Solução
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow