> From: "Kjell - LA3SG" <[EMAIL PROTECTED]>
> To: Roman Neuhauser <[EMAIL PROTECTED]>
> Date: Sat, 13 Jul 2002 08:20:55 +0100
> Subject: Re: FreeBSD 4.6 can not serve PHP web pages
> Cc: [EMAIL PROTECTED]
> 
> On 13 Jul 2002, at 9:06, Roman Neuhauser wrote:
> > > From: "Kjell - LA3SG" <[EMAIL PROTECTED]>
> > > 
> > > When making a fresh install of 4.6 or 4.5 followed by a cvsup of 
> > > RELENG_4, followed by installing mod_PHP4 from 
> > > the ports using defaults this does not work:
> > > ------
> > > calling up the page 
> > > http://my.site.com/page.php?a=5 from my browser, 
> > > or my.site.com/page.php?a=5 in a <form..> tag, a 
> > > is undefined when page.php is entered. IE 
> > > arguments are not passed.
> > 
> >     http://www.php.net/release_4_2_0.php
>
> Yes. I see. Thank you! 
> Looks like I have to make an average of 56 changes in 678 
> routines! And 56 * 678 =?
> ------------------------------------

    ** The biggest change in PHP 4.2.0 concerns variable handling.
    ** External variables (from the environment, the HTTP request,
    ** cookies or the web server) are no longer registered in the
    ** global scope by default.  The preferred method of accessing
    ** these external variables is by using the new Superglobal
    ** arrays, introduced in PHP 4.1.0.

    I don't see where it says you can't have the old behavior.
    This has been configurable since I remember (which is 4.0b3).
    Just change the value of register_globals in php.ini to "On",
    and your code works as before.

    BTW, I admire anyone who codes anything larger than quick hacks with
    register_globals On.  It's such a mess I can't tell my ass from a
    hole in the ground after 15 minutes of looking at such code.

    YMMV, I guess.

-- 
FreeBSD 4.6-STABLE
10:25AM up 39 mins, 6 users, load averages: 0.00, 0.00, 0.00

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to