Guest User

Untitled

a guest
Mar 5th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. <?php
  2. echo "Hello From /Users/username/Sites/ Folder!";
  3. phpinfo();
  4. ?>
  5.  
  6. <?php
  7. date_default_timezone_set('UTC');
  8. $day = date('l');
  9. ?>
  10.  
  11. <!doctype html>
  12. <html>
  13. <head>
  14. <title>Hello, World! | Foo</title>
  15. </head>
  16. <body>
  17. <h1>Hello, World!</h1>
  18. <p>Welcome to /Users/username/Sites/foo/index.html.</p>
  19. echo $greeting
  20. </body>
  21. </html
  22.  
  23. <?php
  24. $greeting = 'Hello, PHP World!';
  25. echo '<h1>' . $greeting . '</h1>';
  26. ?>
  27.  
  28. <?php
  29. include_once 'connectVPN.php';
  30. ?>
  31.  
  32. <!DOCTYPE html>
  33. <html>
  34.  
  35. <head>
  36.  
  37. </head>
  38. <body>
  39.  
  40. <script>
  41. function writeStatus() {
  42. var status = document.getElementById("status");
  43. status.innerHTML = "Welcome to PhoneGap Programming ... now
  44. you stepped in it.";
  45. }
  46. </script>
  47.  
  48. <?php
  49. $sql = "SELECT * FROM MySQLtable;";
  50. $result = mysqli_query($conn, $sql);
  51. $resultCheck = mysqli_num_rows($result);
  52.  
  53. if ($resultCheck > 0) {
  54. while ($row = mysqli_fetch_assoc($result)) {
  55. echo $row['IndTCversion']
  56. }
  57. }
  58. ?>
  59. </body>
  60.  
  61. </html>
  62.  
  63. <?php
  64. $servername = "198.IP.num.ber";
  65. $username = "dbaseuser";
  66. $password = "dbpassword";
  67. $dbname = "wwwdbname";
  68.  
  69. // Create connection
  70. $conn = mysqli_connect($servername, $username, $password, $dbname);
  71.  
  72. // Check connection
  73. if ($conn->connect_error) {
  74. die("Connection failed: " . $conn->connect_error);
  75. }
  76. echo "Connected successfully";
Add Comment
Please, Sign In to add comment