Reply to Re: remove specific line

Your name:

Reply:


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]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация