Here is something I put together because I needed a way to pull the MySQL version number from the server without actually having a connection. This was due to being part of a server info screen prior to installation of a cms. Users need to know if their MySQL is supported or not prior to installation right? :)

This will scrape the phpinfo page looking for the MySQL row that says Client API version and return the version number after it. This could also be used to scrape just about anything from the phpinfo page. :)

I know this is crude but it's the only thing I could come up with and there isn't anything like this info available online so here it is. I suck at preg_match and it would be helpful if someone could modify the string here to stand the test of time.