Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. HTTP/1.1 200 OK
  2. Powered-By: PHP/5.3.7
  3. Vary: Accept-Encoding
  4. Content-Type: text/html; charset=utf-8
  5.  
  6. <html><head><title>PHP page output page</title></head>
  7. <body><h1>Content</h1> <p>Some more output follows...</p>
  8. and <a href="/"> <img src=internal-icon-delayed> </a>
  9.  
  10. <!DOCTYPE html>
  11. <?php
  12. // Too late for headers already.
  13.  
  14. <?php
  15. # There's a SINGLE space/newline before <? - Which already seals it.
  16.  
  17. ?>
  18.  
  19. <?php
  20.  
  21. phptags --whitespace *.php
  22.  
  23. error_reporting(E_ALL);
  24. ini_set("display_errors", 1);
  25.  
  26. exit(header("Location: /finished.html"));
  27.  
  28. if (headers_sent()) {
  29. die("Redirect failed. Please click on this link: <a href=...>");
  30. }
  31. else{
  32. exit(header("Location: /user.php"));
  33. }
  34.  
  35. <meta http-equiv="Location" content="http://example.com/">
  36.  
  37. <meta http-equiv="Refresh" content="2; url=../target.html">
  38.  
  39. <script> location.replace("target.html"); </script>
  40.  
  41. <?php
  42. // Note the space before "<?php"
  43. ?>
  44.  
  45. THERE SHOULD BE NO BLANK SPACES HERE
  46. <?php
  47.  
  48. echo "your code here";
  49.  
  50. ?>
  51. DO CHECK FOR BLANK SPACES HERE AS WELL; THIS LINE (blank line) SHOULD NOT EXIST.
  52.  
  53. <?php
  54. ob_start();
  55.  
  56. // code
  57.  
  58. ob_end_flush();
  59. ?>
  60.  
  61. //header("Location:".ADMIN_URL."/index.php");
  62.  
  63. echo("<script>location.href = '".ADMIN_URL."/index.php?msg=$msg';</script>");
  64.  
  65. ?><script><?php echo("location.href = '".ADMIN_URL."/index.php?msg=$msg';");?></script><?php
  66.  
  67. printf ("Hi %s,</br />", $name);
  68.  
  69. printf ("Hi %s,</br />", $name);
  70.  
  71. <?php
  72. include('a_important_file.php'); //really really really bad practise
  73. header("Location:A location");
  74. ?>
  75.  
  76. <?php
  77. //some php code
  78. //another line of php code
  79. //no line above is generating any output
  80. ?>
  81.  
  82. ----------This is the end of the an_important_file-------------------
  83.  
  84. $this->_helper->layout->disableLayout();
  85.  
  86. <?php
  87. echo Zend_Json_Encoder::encode($this->object);
  88. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement