Is it possible to conditionally require_once, set globals, or set constants?

Posted by stormist on Stack Overflow See other posts from Stack Overflow or by stormist
Published on 2010-04-20T19:21:29Z Indexed on 2010/04/20 19:23 UTC
Read the original article Hit count: 228

Filed under:
|
|

I have a particular php class that I want to be able to upload identical copies to two different servers. Depending on the server though, the requires will be located in different places. (the constants and globals are slightly different as well) Can I conditionally set require_once, Globals, or constants at the beginning of the file?

© Stack Overflow or respective owner

Related posts about php

Related posts about require