Guest User

Untitled

a guest
Mar 6th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 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. include_once 'connectVPN.php';
  25. ?>
  26.  
  27. <!DOCTYPE html>
  28. <html>
  29. <head>
  30. </head>
  31. <body>
  32. <script>
  33. function writeStatus() {
  34. var status = document.getElementById("status");
  35. status.innerHTML = "Welcome to PhoneGap Programming ... now
  36. you stepped in it.";
  37. }
  38. </script>
  39.  
  40. <?php
  41. $sql = "SELECT * FROM MySQLtable;";
  42. $result = mysqli_query($conn, $sql);
  43. $resultCheck = mysqli_num_rows($result);
  44.  
  45. if ($resultCheck > 0) {
  46. while ($row = mysqli_fetch_assoc($result)) {
  47. echo $row['ColumnX']
  48. }
  49. }
  50. ?>
  51. </body>
  52. </html>
  53.  
  54. <?php
  55. $servername = "198.IP.num.ber";
  56. $username = "dbaseuser";
  57. $password = "dbpassword";
  58. $dbname = "wwwdbname";
  59.  
  60. // Create connection
  61. $conn = mysqli_connect($servername, $username, $password, $dbname);
  62.  
  63. // Check connection
  64. if ($conn->connect_error) {
  65. die("Connection failed: " . $conn->connect_error);
  66. }
  67. echo "Connected successfully";
Add Comment
Please, Sign In to add comment