문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top