Thanks again for the reply.
So images, even uploaded are never stored into the DB only referenced correct? That makes sense, the last thing I want is getting images from a SQL database which are actually stored and generated from the database. Vbulletin for example has this option but I don´t like that, and its recommended to store images as file in the server. I guess the same is true with EE.
Ok, I will use templates as my php includes then like you explained. Since I will not including this anymore via PHP but with EE you are right, there is no need for PHP here as I would be inserting the head, footer, etc via EE.
So basically I would be including a template inside a template? Is this correct? How deep can this go?
Now im a bit confused about something in particular. I know everyone can go with a different approach in their design structure but some things are just common sense. Just like you said CSS and JS should be loaded from the server (the same I imagined from day one) on the book I purchased from Amazon “Building Websites with ExpressionEngine 2” from Leonard Murphy, in his example he seems to put everything inside templates. He basically says on one part, open the style.css file, copy all the content and paste it into the template. When I was reading this my mind went to Wow, wait a minute, now the database and EE is generating every single bit of code when rendering the page, this would be performance wise awful, slow and probably a bad idea.
Then your reply here confirmed what I thought but then when I think about it, what is the difference between putting a simple text content in a template or a CSS or Javascript code in it? Nothing. They are all texts, so it should make no difference to EE do display 100 lines of text like this post, or 100 lines of CSS or JS since they all rendered on the end by the browser. Please correct me if im wrong here.
So which one is it then? If you think about it, text is text, and its the browser that generates the output, so it should not make a difference what is on the template. I mean, even if you load the css and js externally on a file directly on the server, the whole template that contains the page structure is actually already in EE so its already in a database.
So if the HTML of the site which contains the code has something like this in there:
<link rel="stylesheet" type="text/css" href="http://www.example.com/default/css/style.css" />
Yes, its loading the file externally, but that same line is actually or would already be in a EE template already, so that one is already generated from the database, so what difference would it make if the whole style is also in a template? Text is text, let it be content or some instructions which tell the browser to do something.
My point is I want to start from day one doing things correctly and not having to rewrite the site again in the future.
So which one is it? Is there a performance hit or none to having CSS, Javascript and everything else inside EE?