RE: [PHP] Script never returns from funktion.

From: Date: Sat, 01 May 2004 15:01:12 +0000
Subject: RE: [PHP] Script never returns from funktion.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-185098@lists.php.net to get a copy of this message
Hi Wolf Thanks for the try. but sorry to say that the script stil hangs in the auth3.php script. Med venlig hilsen - Best Regards Lars Pedersen Notes Administrator -------------------------------------------------------------------- "PHP Email List" <php@wolf-smart.c om> To <Lars.Pedersen@oz2lpr.dk> 01-05-2004 12:14 cc <php-general@lists.php.net> Subject RE: [PHP] Script never returns from funktion. > 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

« previous php.general (#185098) next »