Re: php4 parameter problems
On Thursday 13 December 2001 04:27, Patrick Hsieh wrote:
> I use the php4 debian package from woody.
> But in this case, I can't print the value of $test_par, which should be
> If I get php4 source tarball and compile myself, the function is working.
> I wonder why the php4 shipped from woody can't work.
> BTW, I have register_globals = On in php.ini, and
> $HTTP_GET_VARS["test_par"] is also a blank. :-(
> My headache is that some of my codes were ok in this case when they are
> in php4.0.x on FreeBSD, when I migrated to php 4.1 on Debian, they do
> not work. And I really do not want to compile php4 myself. So I wonder
> if debian php4 maintainer has some special concerns, such as security
> issue, so he disable this function.
Try to access the page with:
Then see if you get $test_par
> > * Patrick Hsieh (email@example.com) [Dec 12. 2001 01:25]:
> > > http://host.domain.com/test.php?111+222+&test_par=aaa&
> > >
> > > then in test.php, I can get
> > > 111 as argv0
> > > 222 as argv1
> > > &test_par=aaa& as argv3
> > >
> > > but I can't get the value of $test_par, which should be aaa
> > What's wrong with just using $test_par? As in:
> > <?php print $test_par; ?>
> > --
> > -Brian Clark
> > --
> > To UNSUBSCRIBE, email to firstname.lastname@example.org
> > with a subject of "unsubscribe". Trouble? Contact
> > email@example.com