I'm running PHP 4.1.2 + Apache 1.3.23 + PostgreSQL 7.2.

I've tried reverting back to globals=on, and same problem. Yet, earlier in 
another script I used $sfname = $_GET['sfname']; to get the value of sfname 
-- now, it won't work. I'm truly stumped -- I don't know whether it's my 
code? [I beginning to think it isn't because of the flakiness of the php.ini 
failing to report changes accurately] 

I've dumped PHP and re-installed it, but the same problem persists.

Now for the big question -- what's wrong with globals=on anyway? Eventually 
the site will be public, and probably the host won't allow globals on, but 
what's the security risk?

You say $_SESSION[] and $_POST[] are always on -- even if globals are on?
Can I verify what all the variables in the array are? Where would I look? By 
the look of things, I've got a major problem -- but I don't know where to 

Help? Please?


On Friday 19 April 2002 10:17 pm, you wrote:
> I accidentally deleted your last message. But with current versions of
> PHP, $_POST, etc., are always on and there's no way to turn them off.
> Which version are you running? (check phpinfo()).
> miguel
> On Fri, 19 Apr 2002, Miguel Cruz wrote:
> > On Fri, 19 Apr 2002, Andre Dubuc wrote:
> > > Whenever I try:
> > >
> > > print("$_SESSION['sfname']);  or  print("$_POST['scity']
> > >
> > > I get a parse error "expecting 'T_STRING' . . ." -- obviously there's
> > > nothing in the array or I haven't set it.
> >
> > You just have a simple syntax error.
> >
> > You can use any of the following:
> >
> >    print $_SESSION['sfname'];
> >    print "{$_SESSION['sfname']}";
> >    print "${_SESSION['sfname']}";
> >
> > But you can't put a bare array dereference inside a quoted string like
> > you tried above. You need to surround it with {curly braces} or take it
> > outside the quoted string.
> >
> > miguel

Please pray the Holy Rosary to end the holocaust of abortion.
Remember in your prayers the Holy Souls in Purgatory.

May God bless you abundantly in His love!
For a free Cenacle Scriptural Rosary Booklet: http://www.webhart.net/csrb/

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to