Because global is specific to the SCOPE not to the variable -
variables themselves aren't tagged as global. If you add
global $text;
in your echoo() function it will work. Alternatively, you could replace
echo $text;
with
echo $GLOBALS['text'];
in your echoo() function
If that works than the why does test file I tried previously to making the
post return a $text does not exist error?
"Sqlcoders.Com Programming Dept" <[EMAIL PROTECTED]> wrote in message
009f01c20241$f05aaf80$6520fea9@dw">news:009f01c20241$f05aaf80$6520fea9@dw...
> Sqlcoders.com Dynamic data dri
David:
> makevars() {
> list($md5,$pusername,$pproject,$pfile) = explode(":",$authok);
> $user = $pusername;
> $project = $pproject;
> $file = $pfile;
> }
Uh, why are you wasting memory and time by reassigning the variables?
Why not call the variables what you want them to be in the first plac
Sqlcoders.com Dynamic data driven web solutions
- Original Message -
From: "David Duong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: May 22 2002 04:21 PM
Subject: [PHP] Making varibles (more than one) with a function.
> I am aware that return can return strings but is their a set
4 matches
Mail list logo