PHP 3 Question

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, ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-30-2004
Matt Doggie
 
Posts: n/a
Default PHP 3 Question

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.....




Reply With Quote
  #2 (permalink)  
Old 01-30-2004
John Smith
 
Posts: n/a
Default Re: PHP 3 Question

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.....
>
>
>
>



Reply With Quote
  #3 (permalink)  
Old 01-30-2004
Andy Hassall
 
Posts: n/a
Default Re: PHP 3 Question

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>
Reply With Quote
  #4 (permalink)  
Old 01-30-2004
Andy Hassall
 
Posts: n/a
Default Re: PHP 3 Question

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>
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:13 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0