No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.php 2.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>LAMP STACK</title>
  7. <link rel="stylesheet" href="/assets/css/bulma.min.css">
  8. </head>
  9. <body>
  10. <section class="hero is-medium is-info is-bold">
  11. <div class="hero-body">
  12. <div class="container has-text-centered">
  13. <h1 class="title">
  14. LAMP STACK
  15. </h1>
  16. <h2 class="subtitle">
  17. Your local development environment
  18. </h2>
  19. </div>
  20. </div>
  21. </section>
  22. <section class="section">
  23. <div class="container">
  24. <div class="columns">
  25. <div class="column">
  26. <h3 class="title is-3 has-text-centered">Environment</h3>
  27. <hr>
  28. <div class="content">
  29. <ul>
  30. <li><?= apache_get_version(); ?></li>
  31. <li>PHP <?= phpversion(); ?></li>
  32. <li>
  33. <?php
  34. $link = mysqli_connect("mysql", "root", "tiger", null);
  35. /* check connection */
  36. if (mysqli_connect_errno()) {
  37. printf("MySQL connecttion failed: %s", mysqli_connect_error());
  38. } else {
  39. /* print server version */
  40. printf("MySQL Server %s", mysqli_get_server_info($link));
  41. }
  42. /* close connection */
  43. mysqli_close($link);
  44. ?>
  45. </li>
  46. </ul>
  47. </div>
  48. </div>
  49. <div class="column">
  50. <h3 class="title is-3 has-text-centered">Quick Links</h3>
  51. <hr>
  52. <div class="content">
  53. <ul>
  54. <li><a href="http://localhost/phpinfo.php">phpinfo()</a></li>
  55. <li><a href="http://localhost:8080">phpMyAdmin</a></li>
  56. <li><a href="http://localhost/test_db.php">Test DB Connection</a></li>
  57. </ul>
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. </section>
  63. </body>
  64. </html>