How to make decent php website
Maybe this question has been posted before but I can't find something similar. I want to make simple php site and don't know how to begin. I assume that there are better way than just pile up functions and code and later when I would want to change something it will be difficult. Is there some template (structure of website, best practices) which is good to start with, but it shouldn't be something difficult because website is really small for now. All I can find are frameworks that are too big?
This rather depends on what you're hoping to achieve by using PHP; first define what you're hoping to achieve, you'll have a better chance of getting a meaningful response from the community...
here is a basic template that will help you make a basic site, the files that have ".inc.php" are files that go in
a include folder. basically you can add a lot of pages and just have to include the header, footer and sidebar. only the content of the page will be different.
index.php -> http://pastebin.com/59i9Ea1b
footer.php -> http://pastebin.com/ptXppPzD
header.inc.php -> http://pastebin.com/cyDyEdgk
sidebar.php -> http://pastebin.com/QaZfUtC9
title.inc.php -> http://pastebin.com/nKYxgRQh
main.css -> http://pastebin.com/Aik2Tj8b
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)