I'm just experimenting with building a site, and want to follow a patten I have used elsewhere...
Say my folder is called "WebSite1". Within that I have public_html which will contain all client-facing code and assets...
But outside it I want a folder called "Classes" that will contain my business objects. Also I'd like to have a config.whatever that contains things such as database connections.
I know this can be leveraged through Zend for example, but am looking at my own way to do this. Can someone tell me how?
Uhm, that's every business ever, though. It doesn't matter if a bajillion users are using it. As long as it's not making bank, it's probably headed for the graveyard.
Question
+Nik Louch Subscriber²
I'm just experimenting with building a site, and want to follow a patten I have used elsewhere...
Say my folder is called "WebSite1". Within that I have public_html which will contain all client-facing code and assets...
But outside it I want a folder called "Classes" that will contain my business objects. Also I'd like to have a config.whatever that contains things such as database connections.
I know this can be leveraged through Zend for example, but am looking at my own way to do this. Can someone tell me how?
Ta
Link to comment
https://www.neowin.net/forum/topic/842414-php-classes-and-config-outside-public_html/Share on other sites
12 answers to this question
Recommended Posts