Re: Local to Global Variables
| From: | Ron Allen | Date: | Thu, 11 Apr 2002 10:55:15 +0000 |
| Subject: | Re: Local to Global Variables | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-18422@lists.php.net to get a copy of this message | ||
guessing here, but have you tried to use include'filename.txt' in your if
statement?
"Eat Pasta Type Fasta" <php@finalbanana.com> wrote in message
news:200204110808.g3B88hl27358@host16.the-web-host.com...
> Not 100% DB related but soon
>
> I am processing a text file by looking for strings which later depending
> on the findings will be submitted to db
>
> my problems is that in one if statemant I find a piece of text and need
> another statment to use it later, but it seems that the variable declared
> to the found string remains local.
>
> Is there a way to set variables from within functions/if statements so
> they become available to all.
>
> Thnaks in advance
>
> R>