Skip to main content
gamedev.net
🔒 Locked

PHP class def include after session_start

Started by Wavesonics 0 replies 450+ views
Original Post
Wavesonics
Wavesonics
So I've got an issue. I have a stack of event handlers. And I need to dynamically include their class definitions to use them. And as far as I have found so far, you MUST include class definitions BEFORE you use session_start(). Problem is, I don't know what event handlers to load definitions for until I can access my session variables storing the handler stack. It's a catch22 :/ (I don't even have the path to include with so it's not like i could just include them all and be dirty and hacky about it.) Any bright ideas anyone? Maybe some way to store the class definition in the session? idk...

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.