Frage

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?

War es hilfreich?

Lösung

You can use $response = json_decode(file_get_contents($url))

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top