PHP 3 Question

From: Matt Doggie (mdoggie_nosuchemail_at_msn.com)
Date: 01/30/04


Date: Fri, 30 Jan 2004 18:48:12 GMT

A client of mine requires us to develop a very simple PHP 3 page (I know php
3 is outdated, but anyways..). I run into a problem.. We are running Apache
1.3.27 with PHP 3.0.17

<?
echo $PHP_SELF; // This one works
echo $HTTP_SERVER_VARS["PHP_SELF"]; // This one doesn't work, it returns
blank
echo $HTTP_SERVER_VARS["REMOTE_ADDR"]; // This one doesn't work, it
returns blank
?>

When I do a <?=phpinfo()?> in the PHP Variables section, it only shows
PHP_SELF.. there is no other server variables available??

Help.....



Relevant Pages

  • Re: Netscape named colours
    ... Unless of course you use PHP to parse your CSS, ... Actually, I would use $backgroundcolor1, $backgroundcolor2, $bordercolor, $maintextcolor, and so on, so they *aren't* so descriptive of colour, more of where they are used, then changing the whole colour scheme of the site means changing just those PHP variables. ...
    (uk.net.web.authoring)
  • Re: Dynamically saving HTML containing PHP variables through PHP
    ... dynamically i.e. when all the PHP variables are written into the HTML ... Just output all you want, using your PHP variables to produce the output ... have a look at CURL. ...
    (comp.lang.php)
  • Re: Why is PHP substituting an underscore in my form?
    ... I'm using PHP 4.4.4. ... I notice for form elements that contain spaces, ... that PHP uses when you want the post/get data to come out as an array. ... behaviour meant that the data was mapped into PHP variables, ...
    (comp.lang.php)
  • Re: conf problem?
    ... Is php needed to set anything or security issue such that $HTTP_GET_VAR ... associative array can't be retrieved? ... When On, long predefined PHP variables ...
    (comp.lang.php)
  • Re: Using ECHO once per page or incidentally
    ... > I read a short thread at php.net regarding the use of ECHO. ... > I have an HTML form with PHP variables to define each input value ... > form in PHP tags? ...
    (comp.lang.php)