Jump to content
  • Advertisement
Sign in to follow this  
Wavesonics

PHP class def include after session_start

This topic is 3980 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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...

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!