Re: Errormessages
| From: | Jason Wong | Date: | Mon, 18 Mar 2002 04:09:04 +0000 |
| Subject: | Re: Errormessages | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-88879@lists.php.net to get a copy of this message | ||
On Monday 18 March 2002 06:31, Markus Falk wrote:
> I run a script on my page that has worked fine before with 4.0.3 but now
> when my provider has upgraded to 4.1.2, a bunch of error messages appear.
> I get some messages about variables not being defined just as if I can't
> send variables via the adressbar (/ ../index.php?$kat=0 for example. ) How
> come they suddenly appear as not being defined?
> I also get a lot of messages saying "PHP Warning: Undefined offset: 1 in
> /home/f/falk/public_html/index.php on line 148"
> What does it mean that I have an undefined offset?
>
> You can find all errormessages here http://www.acc.umu.se/~falk
Because in PHP 4.1.1+ the setting register_globals has been turned off by
'default'. To access the variables passed through the URL you need to use
$_GET[]. For your example above that would be $_GET['kat'].
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
/*
When the English language gets in my way, I walk over it.
-- Billy Sunday
*/