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?
Asked
Active
Viewed 116 times
-3
-
1php-curl, file_get_contents, and many many others... – Pastor Bones Oct 31 '13 at 13:11
1 Answers
0
You can use $response = json_decode(file_get_contents($url))

darthmaim
- 4,970
- 1
- 27
- 40
-
My issue is that I don't really know how to set up an Ajax request with PHP. – user2941520 Oct 31 '13 at 13:13
-
-