SERVER variables in .htaccess file

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

User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Re: SERVER variables in .htaccess file

Post by Ollie Saunders »

No - since the project will be available to download I don't want people to need to alter anything to do with config files. The whole point in my project is that it is simple for people new to programming to quickly install and use.
Hmmm OK. Can you give me a bit more background on the project. For example, what are the motivations?
someberry
Forum Contributor
Posts: 172
Joined: Mon Apr 11, 2005 5:16 am

Re: SERVER variables in .htaccess file

Post by someberry »

ole wrote:
No - since the project will be available to download I don't want people to need to alter anything to do with config files. The whole point in my project is that it is simple for people new to programming to quickly install and use.
Hmmm OK. Can you give me a bit more background on the project. For example, what are the motivations?
Sure. It is a CMS which is aimed towards people new to programming. The point of the project is that it is extremly lightweight, so very quick to install and get running.

Since people will be downloading it via the Internet, getting new users to hunt in the configuration files will cause them to pull their hair out (if they even have access to them on their host). Also, people might want to install it on http://www.example.org/cms, http://www.example.org/path/to/cms, or somewhere else. Therefore it needs to be as flexible solution as posible.

Thanks :-)
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Re: SERVER variables in .htaccess file

Post by Ollie Saunders »

Well than I would suggest you serve everything out of a single page and use a front controller. So http://domain.com/cms/?action=show&page=pie type thing that way you can write your own routing logic and you can declare stuff in the main page and have it accessible to every point of the application.
Post Reply