PHP Print all server Variables


/ Published in: PHP
Save to your folder(s)

Prints all $_Server variables to table


Copy this code and paste it in your HTML
  1. print"<table border=1>";
  2. foreach ($_SERVER as $key=>$val ){
  3. if ($key <> "HTTP_COOKIE" && $key <> "PATH"){
  4. echo "<tr><td>".$key."</td><td>" .$val."</tr>";
  5. }
  6. }
  7. print"</table>";

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.