This is a discussion on PHP 3 Question within the alt.comp.lang.php forums, part of the PHP Programming Forums category; A client of mine requires us to develop a very simple PHP 3 page (I know php 3 is outdated, ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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..... |
|
|||
|
Check register_globals in your php.ini!
"Matt Doggie" <mdoggie_nosuchemail@msn.com> schreef in bericht news:MFxSb.28564$ef.1652@twister01.bloor.is.net.ca ble.rogers.com... > 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..... > > > > |
|
|||
|
On Fri, 30 Jan 2004 19:53:51 +0100, "John Smith" <someone@nobody.com> wrote:
>"Matt Doggie" <mdoggie_nosuchemail@msn.com> schreef in bericht >news:MFxSb.28564$ef.1652@twister01.bloor.is.net.c able.rogers.com... >> 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 > >Check register_globals in your php.ini! Doesn't exist in that version. -- Andy Hassall <andy@andyh.co.uk> / Space: disk usage analysis tool <http://www.andyh.co.uk> / <http://www.andyhsoftware.co.uk/space> |
|
|||
|
On Fri, 30 Jan 2004 18:48:12 GMT, "Matt Doggie" <mdoggie_nosuchemail@msn.com>
wrote: >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?? Don't think so. There's a few PHP3 manuals listed on Google, can't spot HTTP_SERVER_VARS in them; everything comes in as a global back then. -- Andy Hassall <andy@andyh.co.uk> / Space: disk usage analysis tool <http://www.andyh.co.uk> / <http://www.andyhsoftware.co.uk/space> |