> Subject: [PHP] Script never returns from funktion.

> Hi ,  i am having problems with a funktion call never returns from the
> funktion.


Now I'm still new to PHP so bare with me if this is wrong. But don't you
have to assign the "authenticate()" function to something as your returning
the $username? I believe you need to assign it to a variable name that of
which you are echo'ing on the very next line, as the function doesn't allow
for global scope of your "$username" variable.

[...]
> authenticate(); // the script never returns from this line

        $username = authenticate();

>  }
>echo "user = $username";
[/...]

The PHP Pros can correct me if I'm wrong now. I thought I'd take a shot at
this one though. Thanks and HTH.
Wolf

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to