|
Posted by Rincewind on 11/15/50 11:26
On 11 Sep 2005 10:26:55 -0700, weissborn@charter.net wrote:
> changed to .php and accessed via http://localhost/phptest1.php and now
> I get the following:
>
> PHP and HTML
>
> Server Variables
> HTTP_REFERER:
> HTTP_USER_AGENT:
> REMOTE_ADDR:
> REMOTE_HOST:
> QUERY_STRING:
> PATH_INFO:
>
> BUT shouldn't I be seeing some values here? Do I have php/apache
> configured properly (see original post)?
>
> Bill W
Your getting the same as me! and I'm using the same configuration.
Have you tried the basic ..
<?php
phpinfo();
?>
This should list everything you need, if it doesn't then you may have
problems, but if the previous script threw up the same as my working
machine, then I would guess that yours is working fine.
If you want info on the global variables on your system the run this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="Generator" content="TextPad 4.7">
<meta name="Author" content="Barry Ambrose">
<meta name="Keywords" content="?">
<meta name="Description" content="?">
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>Global Variables</title>
<style type="text/css">
body{background-color: #fff}
font-size: .8em;
font-family: arial serif;
</style>
</head>
<body>
<table width="100%" border="1">
<tr><td colspan="2"><h1>Displaying Predefined Variables</h1></td>
</tr>
<tr><td width="40%" valign="top">Globals - $GLOBALS</td>
<td width="60%"><pre>
<?php
echo "<pre>";
print_r($GLOBALS);
echo "</pre>";
?>
</td>
</tr>
<tr><td width="40%" valign="top">Server - $_SERVER</td>
<td width="60%"><pre>
<?php
echo "<pre>";
print_r($_SERVER);
echo "</pre>";
?>
</td>
</tr>
<tr><td width="40%" valign="top">
Get - $_GET</td>
<td width="60%"><pre>
<?php
echo "<pre>";
print_r($_GET);
echo "</pre>";
?>
</td>
</tr>
<tr><td width="40%" valign="top">Post - $_POST</td>
<td width="60%"><pre>
<?php
echo "<pre>";
print_r($_POST);
echo "</pre>";
?>
</td>
</tr>
<tr><td width="40%" valign="top">Cookie - $_COOKIE</td>
<td width="60%"><pre>
<?php
echo "<pre>";
print_r ($_COOKIE) ;
echo "</pre>";
?>
</td>
</tr>
<tr><td width="40%" valign="top">Files - $_FILES</td>
<td width="60%"><pre>
<?php
echo "<pre>";
print_r ($_FILES);
echo "</pre>";
?>
</td>
</tr>
<tr><td width="40%" valign="top">Environment - $_ENV</td>
<td width="60%>
<?php
echo "<pre>";
print_r($_ENV);
echo "</pre>";
?>
</td>
</tr>
<tr><td width="40%" valign="top">Request - $_REQUEST</td>
<td width="60%"><pre>
<?php
echo "<pre>";
print_r($_REQUEST);
echo "</pre>";
?>
</td>
</tr>
<tr><td width="40%" valign="top">Session - $_SESSION</td>
<td width="60%"><pre>
<?php
echo "<pre>";
print_r($_SESSION);
echo "</pre>";
?>
</td>
</tr>
</table>
</body>
</html>
But this will only give you much the same info as the first script.
Navigation:
[Reply to this message]
|