Guest User

Untitled

a guest
Jan 22nd, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. <head>
  2. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  3. <title>Untitled Document</title>
  4. </head>
  5. <body>
  6. <?php
  7. session_start();
  8.  
  9. if(!isset($_SESSION['count']))
  10. $_SESSION['count'] = 0;
  11. else
  12. $_SESSION['count']++;
  13.  
  14. echo "You Have Viewed this page ", $_SESSION['count'], " times.";
  15.  
  16. echo session_id(); ?>
  17. </body>
  18. </html>
  19.  
  20. Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/rohitink/public_html/uiet.org/s4/index.php:8) in /home/rohitink/public_html/uiet.org/s4/index.php on line 9
  21.  
  22. Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/rohitink/public_html/uiet.org/s4/index.php:8) in /home/rohitink/public_html/uiet.org/s4/index.php on line 9
  23. You Have Viewed this page 0 times.788141cfa1329643918f87f5f6c9eb5a
  24.  
  25. <?php session_start(); ?>
  26. <html>
  27. ....
Add Comment
Please, Sign In to add comment