Recursive scripts

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Nijhazer
Forum Newbie
Posts: 1
Joined: Wed Nov 06, 2002 3:38 pm

Recursive scripts

Post 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
User avatar
hob_goblin
Forum Regular
Posts: 978
Joined: Sun Apr 28, 2002 9:53 pm
Contact:

Post 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
Post Reply