|
Posted by Kimmo Laine on 06/19/05 23:18
"Ron Eggler" <NOspam@hotmail.com> kirjoitti
viestissδ:3hlmgoFh6lb6U1@individual.net...
> Kimmo Laine wrote:
> [snip]
>> Honestly, Ron... I thought you got it the first time?
> yes Laine, I'm sorry. I defined it global right after the definition of
> the var so it is global everywhere.
> and the removal still doesn't work.... :(
No, it isn't. Unless you have declared it global _inside_ the function, it
isn't available _inside_ the function. Put the global $blacklist; inside the
function and try again. If it still doesn't work, I don't know what will...
This from the manual, the chaper about variable scope: "In PHP global
variables must be declared global inside a function if they are going to be
used in that function."
Just in case there is still something strange about it, check the manual:
http://www.php.net/manual/en/language.variables.scope.php - it's explained
well there.
--
"I am pro death penalty. That way people learn
their lesson for the next time." -- Britney Spears
eternal.erectionN0@5P4Mgmail.com
[Back to original message]
|