server variables in php

ServerVariables.php


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>server variables in php</title>
</head>

<body>
 <h3 style="color:#aaa; text-align:left;">server variables in php example</h3>
 <pre>
  <?php 
   /*
   |---------------------------------------------------------------------------------------------------------
   | $_SERVER is a php server variable. To be speak truth it is an array holding all server variables.
   | php has a function print_r to print entire array along with structure. here it is.
   |---------------------------------------------------------------------------------------------------------
   */
   print_r($_SERVER);
  ?>
 </pre>
</body>
</html>



server variables in php example - output

No comments:

Post a Comment

leave your comments here..