Get Minecraft server info with php?

I have looked this up before, i have tried many different codes found online, None actually work

This all depends on the info you are specifying.

With MySQL (my see-quill) you can save things to a database, and load them from the database on the website (Which would be more secure than sending a website: www.example.com/index.php? SetMOTD="A Minecraft Server"&authorization="adasasd" where it could be crackable esp because you can't do a post method.

I suggest saving things to a MySQL database.

If you want to get started you can download MySQL and run it.
(if you want to host the website on your computer too, use XAMPP)
www.apachefriends.org

Any questions? Email me.