Page 1 of 1

Recursive scripts

Posted: Wed Nov 06, 2002 3:38 pm
by Nijhazer
Hey there, folks...

I'm writing a login script. If all goes well, it registers two session variables and then calls itself again. Here's the problem: I don't know how to make the script call itself.

Is there a command that will tell a script to exit and re-run itself?

Thanks,

-Nij

Posted: Wed Nov 06, 2002 5:24 pm
by hob_goblin
use output buffering, a header to kill the cache, and a header to redirect the page

http://www.php.net/header
http://www.php.net/ob_start