Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ##Test What Exact Version PHP & MySQL
- echo "<h2>Exact Version PHP & MySQL: </h2>";
- printf("PHP version: %s\n", PHP_VERSION);
- $mysql = mysqli_connect('localhost', 'root', '');
- ## Test the MySQL connection
- if (mysqli_connect_errno()) {
- printf("</br> Connection failed: %s\n", mysqli_connect_error());
- exit();
- }
- ## Print the MySQL server version
- printf("</br> MySQL server version: %s\n", mysqli_get_server_info($mysql));
- ##Close the MySQL connection
- mysqli_close($mysql);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement