_destruct : Quick question

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

marty pain
Forum Contributor
Posts: 105
Joined: Thu Jun 11, 2009 5:32 am
Location: Essex

Re: _destruct : Quick question

Post by marty pain »

Thanks for all the help guys!
This seems unlikely to be the problem since you wrote it correctly later, but make sure you are using two underscores.
Yep, used two underscores in the program but not in my note, sorry about that!

In the case of these scripts, there is a large amount of script to execute after the header is sent. I made a bad assumption that all headers broke the flow of execution when sent, as before using them here I had mainly only used the authenticate headers, and they do break execution as the exit statement is only executed if the user cancels the authentication.

Here I need to guarantee the sessions are stable so I'll be using exit()/die() after the header call. I just need to check all the other places now and decide what to do with them (It's a pretty big application now and will take me a while!)
Any time! Have a drink for me, I haven't earned one yet today :)
Ended up drinking for quite a few people :D , but I still owe you one!
Post Reply