Hi, I try to develop a framework and would like to have an option to include the content dynamically every-time in one single file, which has all the includes and stylesheet and all that stuff. How can I do that? Or is there a possibility to include the header and footer file in all the files? thanks for some inputs
Sorry, its kind of a vague description of what you need. Could you clarify There are a lot of php frameworks that do all kinds of stuff, so I'm sure you can save yourself some (google php framework) work by finding one and not reinventing the wheel.
This may be true, but I would like to learn a lot in PHP, not only using a Framework. And I would like to have a Framework which has everything I need, not more, not less.. Hm, what I tried to say in the first post is, that I would like to create a System to handle websites, which make it easy to integrate between the site, which means, that it should include the right header and the footer everytime I call a file on the server...
Essentially you need a front controller that determines which content you are looking at. It may be worth taking a look at a framework, even if you don't use it, to see how it does things. I'd recommend CodeIgniter, since it is lightweight but powerful and does what you are describing in a very clear and simple way.
Are you looking for a php framework with DB connectivity? Best suggestion would be to start with one that creates a basic website using only files. After you plow through first setting one up, then design your own framework. Afterwards you can add in database functionality. Best place to start is google code.